joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2210
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x550910]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.0048ef20
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x4c22a9
lea eax, [ebp - 0x14]
push eax
call fcn.004c1a80
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4c227f
mov ecx, dword [esi + 0x800]
push 0
call fcn.0047cea0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c63a3
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.0047cea0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c63a3
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4c5d80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.00480540
mov edi, eax
add esp, 8
test edi, edi
jne 0x4c5e24
push eax
push 0x80
push 3
push eax
push 1
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c5e19
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
test eax, eax
je 0x4c5e19
push eax
mov dword [ebp + 8], edi
call fcn.0047a84d
add esp, 4
mov edi, eax
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
je 0x4c5e15
push edi
call fcn.004c8273
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
jne 0x4c5e27
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push edi
mov ecx, ebx
call fcn.004c5e50
push edi
mov esi, eax
call fcn.004c8273
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4cccdd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4f2a9e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x550910]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004d47e9
mov dword [ebp - 0x14], eax
cmp dword [0x559858], esi
jne 0x4f2b91
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4f2b1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4f2c71
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4f2c71
push 0x527d20
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f2c71
push eax
call ebx
push 0x527d2c
push edi
mov dword [0x559858], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x55985c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x559860], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x559868], eax
test eax, eax
je 0x4f2b8e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x559864], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4f2bb6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4f2ba9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4f2bcb
push 4
pop eax
jmp 0x4f2c73
cmp dword [ebp - 0x14], esi
je 0x4f2bcb
push dword [0x559858]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4f2bb0
mov eax, dword [0x559864]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4f2c29
cmp dword [0x559868], edi
je 0x4f2c29
push eax
call ebx
push dword [0x559868]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4f2c29
test eax, eax
je 0x4f2c29
call ecx
test eax, eax
je 0x4f2c1e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4f2c1e
test byte [ebp - 8], 1
jne 0x4f2c29
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4f2c59
mov eax, dword [0x55985c]
cmp eax, edi
je 0x4f2c56
push eax
call ebx
test eax, eax
je 0x4f2c56
call eax
mov esi, eax
test esi, esi
je 0x4f2c56
mov eax, dword [0x559860]
cmp eax, edi
je 0x4f2c56
push eax
call ebx
test eax, eax
je 0x4f2c56
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x559858]
call ebx
test eax, eax
je 0x4f2c71
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4f2c73
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c63a3
mov esp, ebp
pop ebp
ret
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.00401c40
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.00406fb6
pop ecx
call fcn.004039dd
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4014e7
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.00407b4e
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00401305
push 0x5c
mov ecx, edi
call fcn.00401405
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401283
push edi
push edi
mov dword [0x415700], esi
mov dword [0x415708], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x415748], 2
mov dword [0x415704], eax
je 0x401544
call fcn.0040711b
push 0xffffffffffffffff
push dword [0x415704]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x415708]
cmp eax, edi
mov dword [0x4157bc], edi
je 0x401593
cmp eax, 1
je 0x401587
cmp eax, 2
je 0x401583
cmp eax, 3
je 0x40157f
cmp eax, 0x67
jle 0x40157a
cmp eax, 0x6a
jle 0x4015f7
push eax
push 0x14
jmp 0x4015ca
push 0x12
jmp 0x401589
push 0x13
jmp 0x401589
push 0x11
push edi
call fcn.00407026
pop ecx
pop ecx
jmp 0x4015f7
cmp dword [0x4157c4], edi
jne 0x4015f7
lea eax, [ebp + 8]
push eax
push dword [0x415704]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x4015ba
cmp ecx, edi
jne 0x4015ba
xor eax, eax
jmp 0x4015fc
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4015cd
push ecx
push 0x21
push edi
jmp 0x4015ef
and ecx, 0xffff
cmp ecx, 0xe
jne 0x4015e1
cmp dword [0x41574c], 0xffffffff
je 0x4015f7
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00407026
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

Function at 0x401962
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 0x4019a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x40198d
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 0x4019a3
test al, 0x10
jne 0x4019a3
push esi
jmp 0x401983
xor eax, eax
inc eax
pop esi
ret
Function at 0x401b01
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 [0x41570c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401b45
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401b6b
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401b56
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 0x401b6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x401be5
cmp dword [0x41571c], 0
jne 0x401be3
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x41571c], 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 [0x41570c]
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 0x401bd8
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x401be3
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 0x401c40
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 [0x415058], ebx
je 0x401c73
mov eax, 0x415058
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x401c73
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x415058]
cmp dword [eax], ebx
jne 0x401c5c
shl esi, 4
cmp dword [esi + 0x415058], ebx
jne 0x401c88
mov eax, 0x41231c
jmp 0x401dfa
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 0x401d38
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 0x401d2f
call edi
test eax, eax
jne 0x401d2f
mov eax, dword [esi + 0x415064]
test eax, eax
je 0x401d24
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x401d21
push dword [esi + 0x415064]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x415064], edi
jmp 0x401d37
push edi
jmp 0x401d32
mov eax, dword [ebp - 8]
mov dword [esi + 0x415064], eax
jmp 0x401d38
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 + 0x415064]
test eax, eax
jne 0x401df9
mov ebx, dword [esi + 0x41505c]
lea edi, [esi + 0x415060]
cmp dword [edi], eax
je 0x401d6e
call fcn.00401bea
cmp eax, dword [0x412fcc]
jne 0x401d6e
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 [0x415054], 0xffffffff
pop ecx
mov dword [esi + 0x415064], eax
jne 0x401dd9
and dword [0x415054], 0
push 0x1f
lea eax, [ebp - 0xa8]
push eax
movzx eax, word [0x41570c]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x401dd9
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x415054], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x415064]
push edi
push ebx
push 0
push dword [0x415054]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x415064]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402130
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x402140
xor eax, eax
leave
ret
test byte [0x41574c], 2
mov dword [ebp - 0x40], 0x40
jne 0x402195
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402195
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402195
jb 0x402171
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402195
push 0x2b
call fcn.00401c40
push eax
call fcn.00406ff6
cmp eax, 1
pop ecx
pop ecx
je 0x40218e
or dword [0x41574c], 0xffffffff
jmp 0x40213c
or dword [0x41574c], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402467
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.004013ed
cmp dword [ebp - 4], 1
jg 0x402485
push 1
lea ecx, [ebp - 0xc]
call fcn.00401112
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 0x4024a9
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4024e0
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.0040220b
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.004010fe
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.0040133e
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40277e
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.004013ed
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x4027bc
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.0040220b
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 0x4027c1
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.004013ed
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.0040220b
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0040220b
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.004010fe
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 0x402c31
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.004021d2
push 0x41244c
lea ecx, [ebp - 0xc]
call fcn.0040281d
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 0x402d0d
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401305
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401405
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040281d
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x402cdc
push 0x412448
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402cf0
push 0x412440
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402cf0
push edi
call fcn.00402c31
pop ecx
jmp 0x402cec
push 0
push edi
call esi
test eax, eax
je 0x402d30
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402d30
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402c77
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402d30
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402d30
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402d38
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 0x402d3e
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402d54
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x402d72
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402d6e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402c31
pop ecx
pop esi
ret

Function at 0x402ead
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 0x402eca
xor eax, eax
jmp 0x402f23
test al, 0x10
je 0x402edb
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x402f23
mov eax, dword [0x415750]
test eax, eax
jne 0x402eed
push esi
call fcn.00402e80
pop ecx
jmp 0x402f23
cmp eax, 2
jne 0x402f20
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x402ee4
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 0x402ee4
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x402f26
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.004021d2
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x402f57
push esi
lea ecx, [ebp - 0x18]
call fcn.00401112
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x402f6b
cmp ax, 0x2f
jne 0x402f74
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x402f9a
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x402f8d
cmp ax, 0x5c
je 0x402f8d
dec esi
test esi, esi
jg 0x402f78
test esi, esi
je 0x403049
and word [edi + esi*2], 0
push edi
call fcn.00401962
test eax, eax
pop ecx
je 0x402f89
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 0x402fd1
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00402ead
test eax, eax
pop ecx
pop ecx
je 0x402fd1
xor esi, esi
jmp 0x40306e
push edi
call fcn.00401962
test eax, eax
pop ecx
jne 0x402feb
push edi
push 0xc
push 1
call fcn.00407026
add esp, 0xc
jmp 0x402fca
cmp esi, ebx
jge 0x40303d
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 0x403023
jmp 0x403022
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x403029
cmp ax, 0x2f
je 0x403029
inc esi
cmp word [edi + esi*2], cx
jne 0x403012
push edi
mov word [edi + esi*2], cx
call fcn.00401962
test eax, eax
pop ecx
je 0x402fdc
cmp esi, dword [ebp - 4]
jl 0x402fef
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x40308e
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403079
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403079
cmp ax, 0x7a
ja 0x403079
cmp word [ecx + 2], 0x3a
jne 0x403079
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x40308e
push ecx
push 0xc
push 1
call fcn.00407026
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
Function at 0x403b27
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.004013ed
push 2
mov ecx, esi
call fcn.0040220b
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
and word [ecx], 0
and dword [esi + 4], 0
test eax, eax
jbe 0x403b7a
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.0040220b
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.0040220b
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
add esp, 0x10
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403bcf
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x403b8a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403bd6
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41538c], esi
jle 0x403c2a
mov eax, dword [0x415390]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004012d3
lea eax, [ebp - 0xc]
push eax
call fcn.004036de
mov eax, dword [0x415390]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41538c]
pop ecx
jl 0x403be7
pop esi
leave
ret