joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7cf
mov edi, 0x41c4c8
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402985
push edi
mov ecx, 0x41e410
call fcn.004042f3
mov esi, 0x7d0
mov ecx, edi
mov edx, esi
call fcn.0040535d
push eax
mov ecx, 0x41e428
call fcn.004042f3
mov edx, esi
mov ecx, edi
call fcn.00405318
test eax, eax
je 0x402840
cmp eax, 0x7cf
jae 0x402840
xor ecx, ecx
mov word [eax*2 + 0x41c4ca], cx
push ebx
push 0x1a
mov esi, 0x41d468
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40285f
push ecx
mov ecx, esi
call fcn.0040537a
add esp, 4
push 4
xor edi, edi
mov dword [ebp - 0x214], 0x24
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x41e40c], eax
test eax, eax
je 0x402985
mov dword [eax], ebx
mov esi, ebx
push 0x20c
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push ebx
push dword [ebp + esi - 0x214]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4028e4
cmp dword [ebp + esi - 0x214], 0x24
jne 0x40297a
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40297a
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4028ed
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp word [ebp + ecx*2 - 0x212], ax
je 0x402912
mov word [ebp + ecx*2 - 0x210], ax
inc ecx
lea ebx, [ecx + ecx]
lea eax, [ebx + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x41e40c]
mov dword [esi + ecx], eax
mov eax, dword [0x41e40c]
mov ecx, dword [esi + eax]
test ecx, ecx
je 0x402978
lea eax, [ebx + 2]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [ebp - 0x210]
push eax
mov eax, dword [0x41e40c]
push dword [esi + eax]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x18
add esi, 4
push 0
pop ebx
cmp esi, 4
jb 0x40288d
mov dword [0x41e408], edi
jmp 0x402981
xor ebx, ebx
call fcn.0040276f
mov edi, ebx
mov eax, edi
jmp 0x402987
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d990
leave
ret
Function at 0x402996
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef4
call fcn.0040ed10
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1f40
lea eax, [ebp - 0x2ee8]
push esi
xor edi, edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2eec], edi
lea eax, [ebp - 0x2eec]
push eax
push esi
lea eax, [ebp - 0x2ee8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x402a97
lea eax, [ebp - 0xfa8]
xor esi, esi
mov dword [ebp - 0x2ef0], eax
mov ebx, 0xfa0
mov eax, dword [ebp - 0x2eec]
inc esi
and eax, 0xfffffffc
mov word [ebp - 0x2ef2], bx
cmp eax, 4
jbe 0x402a92
push ebx
lea eax, [ebp - 0xfa8]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xfa8]
push 0x7cf
push eax
push dword [ebp + esi*4 - 0x2ee8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0xfa8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x402a4e
sub ecx, edx
sar ecx, 1
push edi
push dword [ebp + esi*4 - 0x2ee8]
lea eax, [ecx + ecx]
mov ecx, 0x41c4c0
mov word [ebp - 0x2ef4], ax
lea eax, [ebp - 0x2ef4]
push eax
call fcn.00402aa8
test eax, eax
je 0x402a97
mov ecx, dword [ebp - 0x2eec]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x402a1b
xor eax, eax
inc eax
jmp 0x402a99
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d990
leave
ret

Function at 0x402ca1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREPoliciesZoomZoom_MeetingsGeneral
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402d16
push 4
pop edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
push esi
push str.Disable3rdModuleVerify
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x402d16
cmp dword [ebp - 8], edi
jne 0x402d16
cmp dword [ebp - 0xc], edi
jne 0x402d16
xor eax, eax
cmp dword [ebp - 0x10], eax
sete al
jmp 0x402d19
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4030b8
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
push ebx
push edi
lea edi, [ebp - 0x18]
mov ebx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ebx, ebx
je 0x4031e3
push 0xc
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
test eax, eax
je 0x4031e3
mov edx, dword [ebp - 0x14]
mov eax, 0x5a4d
mov dword [ebp - 8], edx
cmp word [ebx], ax
jne 0x4031e3
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0xc], ecx
lea eax, [ecx + 0xf8]
cmp eax, edx
jae 0x4031e3
lea eax, [ecx + ebx]
cmp dword [eax], 0x4550
jne 0x4031e3
movzx ecx, word [eax + 4]
push esi
mov esi, 0x14c
cmp si, cx
jne 0x403138
xor edi, edi
jmp 0x403153
mov esi, 0x200
cmp si, cx
je 0x403150
mov esi, 0x8664
cmp si, cx
jne 0x4031e2
xor edi, edi
inc edi
mov esi, dword [eax + 0x28]
add esi, ebx
push edx
mov edx, ebx
mov ecx, esi
call fcn.0040382f
add esp, 4
test eax, eax
je 0x4031e2
call fcn.0040384c
test eax, eax
je 0x4031e2
mov ecx, dword [ebp - 0xc]
mov edx, ebx
push edi
push dword [ebp - 8]
lea ecx, [ecx + ebx]
call fcn.00403896
pop ecx
pop ecx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x40
push 0x14
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4031e2
test edi, edi
jne 0x4031b2
mov eax, dword [0x41c028]
mov dword [esi], eax
mov al, byte [0x41c02c]
mov byte [esi + 4], al
jmp 0x4031c3
mov ax, word [0x41c030]
mov word [esi], ax
mov al, byte [0x41c032]
mov byte [esi + 2], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x14
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4031e7
Capabilities:
Create directory
Create thread
Get common file path
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x41e45c], 0
jne 0x40333e
push esi
push edi
mov edi, 0x400
lea eax, [ebp - 0x404]
push edi
xor esi, esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x404]
push esi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40333c
push 0x413698
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
push 0x41369c
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0x18
lea eax, [ebp - 0x404]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._appsafecheck.txt
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x404]
mov edi, 0x80
push esi
push edi
push 2
push esi
push 3
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x41e49c], eax
cmp eax, 0xffffffff
je 0x4032bd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x41e49c], 0xffffffff
push esi
push edi
push 3
push esi
push 3
push 0xc0000000
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x41e49c], eax
cmp eax, 0xffffffff
je 0x40333c
push esi
push 0x7fffffff
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push esi
push esi
xor edi, edi
mov dword [0x41e490], eax
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41e494], eax
cmp dword [0x41e490], esi
je 0x40333c
test eax, eax
je 0x40333c
push esi
push 4
push 0x41c4c0
push 0x4033f0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41e498], eax
test eax, eax
je 0x40333c
push eax
mov dword [0x41e45c], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d990
leave
ret
Function at 0x403407
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x40ef8d
call fcn.0040ec98
mov edi, ecx
mov eax, dword [edi + 0x1fd0]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x1fd4]
push 0xffffffffffffffff
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x403530
lea eax, [edi + 0x1fa0]
lea ebx, [edi + 0x1fb8]
xor ecx, ecx
mov esi, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ecx
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], edx
cmp eax, ebx
je 0x40348a
mov ecx, dword [ebx + 4]
mov esi, dword [ebx]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x38], esi
mov dword [ebx], edx
mov dword [ebp - 0x34], ecx
mov dword [ebx + 4], edx
mov dword [ebp - 0x30], eax
mov dword [ebx + 8], edx
mov dword [ebp - 0x2c], ecx
lea eax, [edi + 0x1fa0]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, dword [ebp - 0x34]
je 0x403506
mov ebx, dword [ebp - 0x2c]
and dword [ebp - 0x2c], 0
mov edx, esi
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404628
pop ecx
push 2
push 0
push 0
push dword [edi + 0x1fdc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x2c]
push 0
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push ecx
push dword [edi + 0x1fdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [edi + 0x1fdc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [ebp - 0x28]
call fcn.00404079
add esi, 0x18
cmp esi, ebx
jne 0x40349f
lea ebx, [edi + 0x1fb8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00403ffe
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
lea eax, [edi + 0x1fa0]
je 0x40344b
xor eax, eax
call fcn.0040ec53
ret
Function at 0x403896
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov edx, dword [ebp + 0xc]
test ecx, ecx
je 0x403978
mov eax, 0xd0
test edx, edx
push esi
push edi
lea esi, [eax - 0x10]
cmove eax, esi
mov edi, dword [eax + ecx]
test edi, edi
je 0x403976
cmp dword [eax + ecx + 4], 0
je 0x403976
cmp edi, dword [ebp + 8]
jae 0x403976
test edx, edx
jne 0x4038e0
mov edi, dword [edi + ebx + 0xc]
jmp 0x4038e4
mov edi, dword [edi + ebx + 0x18]
test edi, edi
je 0x403976
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.0040382f
add esp, 4
test eax, eax
je 0x403976
jmp 0x40395f
push dword [ebp + 8]
mov edx, ebx
mov ecx, esi
call fcn.0040382f
add esp, 4
test eax, eax
je 0x403965
call fcn.0040384c
test eax, eax
je 0x403965
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x40
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp + 0xc], 0
je 0x40393b
mov byte [esi], 0xc3
jmp 0x40394c
mov ax, word [0x41c034]
mov word [esi], ax
mov al, byte [0x41c036]
mov byte [esi + 2], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add edi, 4
mov esi, dword [edi]
test esi, esi
jne 0x403901
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408676
Capabilities:
Create process on windows

Disassembly:
push 0x94
mov eax, 0x410077
call fcn.0040ec98
mov esi, ecx
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_void_]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t__const__]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::MakeLower_void_]
call fcn.0040bcce
test al, al
je 0x408732
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.00408444
test eax, eax
je 0x408732
lea ecx, [ebp - 0x48]
call fcn.004085c3
test eax, eax
je 0x408732
push 0x44
pop edi
push edi
lea eax, [ebp - 0xa0]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0xa0], edi
xor eax, eax
lea edi, [ebp - 0x58]
add esp, 0xc
stosd dword es:[edi], eax
mov ecx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xa0]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__void_const]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x408720
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408732
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
call fcn.0040ec53
ret

Function at 0x409349
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], esi
mov ebx, edi
call dword [sym.imp.Cmmlib.dll_public:_int___thiscall_Cmm::CStringT_wchar_t_::IsEmpty_void_const]
test eax, eax
jne 0x4093a7
mov ecx, esi
call dword [sym.imp.Cmmlib.dll_public:_unsigned_int___thiscall_Cmm::CStringT_wchar_t_::length_void_const]
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea esi, [edi + 2]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040de84
pop ecx
mov ecx, dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::c_str_void_const]
push eax
push esi
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor eax, eax
add esp, 0xc
mov dword [ebx + edi*2], eax
xor edi, edi
push 0x14
pop eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x12], edi
mov dword [ebp - 0xa], edi
mov dword [ebp - 0xe], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test ebx, ebx
je 0x4093dc
push ebx
call fcn.0040de7f
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a0b7
Capabilities:
Enumerate processes

Disassembly:
push 0x294
mov eax, 0x40ed65
call fcn.0040ec98
mov edi, ecx
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.00404742
xor ebx, ebx
mov dword [esi + 4], esi
push ebx
mov dword [esi], esi
mov dword [esi + 8], esi
push 2
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a0f7
xor eax, eax
jmp 0x40a1eb
push 0x228
lea eax, [ebp - 0x284]
mov dword [ebp - 0x288], 0x22c
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x18], ebx
add esp, 0xc
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x288]
mov dword [ebp - 4], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x40a1d1
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x298]
mov dword [ebp - 0x28c], ebx
push eax
mov ecx, edi
call fcn.00404e63
mov eax, dword [ebp - 0x290]
cmp byte [eax + 0xd], 0
jne 0x40a172
cmp ebx, dword [eax + 0x10]
jb 0x40a172
cmp eax, dword [edi]
jne 0x40a174
xor ebx, ebx
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x30]
push eax
mov edx, ebx
call fcn.00409f7f
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
call fcn.004040d7
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2a0]
mov ecx, edi
push eax
call fcn.00405219
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00404079
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40a13c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00404079
xor eax, eax
inc eax
call fcn.0040ec53
ret

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

Disassembly:
push esi
xor esi, esi
test ecx, ecx
jne 0x40a45c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40a477
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a477
mov edx, 0x410
xor ecx, ecx
and eax, edx
inc ecx
cmp eax, edx
cmove esi, ecx
mov eax, esi
pop esi
ret
Function at 0x40a47b
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x400
lea eax, [ebp - 0x408]
push edi
xor esi, esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [0x41e4fc], esi
je 0x40a4ba
mov eax, dword [0x41c040]
jmp 0x40a566
push esi
push 0x1a
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40a541
push 0x413698
lea eax, [ebp - 0x408]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x408]
push 0x41369c
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x408]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._appsafecheck.txt
lea eax, [ebp - 0x408]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x408]
push esi
push 0x80
push 4
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x41c038], eax
call fcn.00402164
xor edi, edi
inc edi
test eax, eax
je 0x40a558
call fcn.0040a3c1
test eax, eax
je 0x40a558
mov esi, edi
mov dword [0x41c040], esi
mov eax, esi
mov dword [0x41e4fc], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d990
leave
ret

Function at 0x40a574
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x40a5c7
mov eax, dword [0x41c038]
cmp eax, 0xffffffff
je 0x40a5c7
push edi
xor edi, edi
push 2
push edi
push edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40a59f
sub ecx, edx
lea eax, [ebp - 4]
push edi
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push esi
push dword [0x41c038]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
jmp 0x40a5c9
xor eax, eax
pop esi
leave
ret
Function at 0x40a5cc
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, edx
push 0x250
push eax
mov dword [ebp - 0x25c], eax
mov ebx, ecx
lea eax, [ebp - 0x258]
or esi, 0xffffffff
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x268], eax
test ebx, ebx
je 0x40a78e
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x25c]
jne 0x40a621
sub ecx, edx
sar ecx, 1
je 0x40a78e
test edi, edi
je 0x40a78e
xor eax, eax
mov dword [edi], eax
call fcn.004020c0
test eax, eax
jne 0x40a77f
call fcn.0040a47b
test eax, eax
je 0x40a77f
mov ecx, ebx
call fcn.0040a44b
test eax, eax
je 0x40a687
lea edx, [ebp - 0x268]
mov ecx, ebx
call fcn.0040aa2a
test eax, eax
jne 0x40a687
mov dword [edi], 1
jmp 0x40a77f
push 0xffffffffffffffff
push 0x4150e0
or edx, 0xffffffff
mov ecx, ebx
call fcn.00409e85
mov dword [ebp - 0x264], eax
pop ecx
pop ecx
test eax, eax
jne 0x40a6ab
push 0xe
jmp 0x40a790
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x25c], esi
cmp esi, 0xffffffff
jne 0x40a6d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
jmp 0x40a774
test byte [ebp - 0x258], 0x10
je 0x40a74f
lea eax, [ebp - 0x22c]
push 0x414c6c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40a74f
lea eax, [ebp - 0x22c]
push 0x4150e4
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40a74f
lea eax, [ebp - 0x22c]
or edx, 0xffffffff
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.00409e85
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40a749
mov edx, edi
mov ecx, esi
call fcn.0040a5cc
mov dword [ebp - 0x260], eax
test eax, eax
jne 0x40a742
cmp dword [edi], eax
jne 0x40a767
mov ecx, esi
call fcn.00409e70
mov esi, dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a6d7
jmp 0x40a774
mov ecx, esi
call fcn.00409e70
mov esi, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x264]
call fcn.00409e70
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x260]
jmp 0x40a791
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d990
leave
ret
Function at 0x40acab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x800
xor esi, esi
lea eax, [ebp - 0x808]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x808]
push esi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40ad20
push 0x41365c
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x80c]
mov dword [ebp - 0x80c], esi
lea ecx, [ebp - 0x808]
call fcn.0040a5cc
test eax, eax
jne 0x40ad20
cmp dword [ebp - 0x80c], esi
jne 0x40ad23
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d990
leave
ret