joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401399
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0x1a
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40143b
push str.ZoomdataZoom.us.ini
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
pop ecx
pop ecx
test eax, eax
jne 0x40143b
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
push 0
push str.com.zoom.test.disable_crash_handler
push 0x411ad8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40143b
lea eax, [ebp - 0x14]
push 0x411aec
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
neg eax
pop ecx
sbb al, al
pop ecx
inc al
jmp 0x40143d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040d390
leave
ret

Function at 0x401cba
Capabilities:
Enumerate processes

Disassembly:
push 0x294
mov eax, 0x40e755
call fcn.0040e688
mov edi, ecx
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.00404422
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 0x401cfa
xor eax, eax
jmp 0x401dee
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 0x401dd4
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.00404b43
mov eax, dword [ebp - 0x290]
cmp byte [eax + 0xd], 0
jne 0x401d75
cmp ebx, dword [eax + 0x10]
jb 0x401d75
cmp eax, dword [edi]
jne 0x401d77
xor ebx, ebx
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x30]
push eax
mov edx, ebx
call fcn.00401b82
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.00403db7
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2a0]
mov ecx, edi
push eax
call fcn.00404ef9
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00403d59
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401d3f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00403d59
xor eax, eax
inc eax
call fcn.0040e643
ret
Function at 0x4024ab
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, 0x41c4b0
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402664
push edi
mov ecx, 0x41e3f8
call fcn.00403fd3
mov esi, 0x7d0
mov ecx, edi
mov edx, esi
call fcn.0040503d
push eax
mov ecx, 0x41e410
call fcn.00403fd3
mov edx, esi
mov ecx, edi
call fcn.00404ff8
test eax, eax
je 0x40251f
cmp eax, 0x7cf
jae 0x40251f
xor ecx, ecx
mov word [eax*2 + 0x41c4b2], cx
push ebx
push 0x1a
mov esi, 0x41d450
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40253e
push ecx
mov ecx, esi
call fcn.0040505a
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 [0x41e3f4], eax
test eax, eax
je 0x402664
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 0x4025c3
cmp dword [ebp + esi - 0x214], 0x24
jne 0x402659
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x402659
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4025cc
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp word [ebp + ecx*2 - 0x212], ax
je 0x4025f1
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 [0x41e3f4]
mov dword [esi + ecx], eax
mov eax, dword [0x41e3f4]
mov ecx, dword [esi + eax]
test ecx, ecx
je 0x402657
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 [0x41e3f4]
push dword [esi + eax]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x18
add esi, 4
push 0
pop ebx
cmp esi, 4
jb 0x40256c
mov dword [0x41e3f0], edi
jmp 0x402660
xor ebx, ebx
call fcn.0040244e
mov edi, ebx
mov eax, edi
jmp 0x402666
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d390
leave
ret
Function at 0x402675
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef4
call fcn.0040e700
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 0x402776
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 0x402771
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 0x40272d
sub ecx, edx
sar ecx, 1
push edi
push dword [ebp + esi*4 - 0x2ee8]
lea eax, [ecx + ecx]
mov ecx, 0x41c4a8
mov word [ebp - 0x2ef4], ax
lea eax, [ebp - 0x2ef4]
push eax
call fcn.00402787
test eax, eax
je 0x402776
mov ecx, dword [ebp - 0x2eec]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x4026fa
xor eax, eax
inc eax
jmp 0x402778
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d390
leave
ret

Function at 0x402980
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 0x4029f5
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 0x4029f5
cmp dword [ebp - 8], edi
jne 0x4029f5
cmp dword [ebp - 0xc], edi
jne 0x4029f5
xor eax, eax
cmp dword [ebp - 0x10], eax
sete al
jmp 0x4029f8
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x402d98
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 0x402ec3
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 0x402ec3
mov edx, dword [ebp - 0x14]
mov eax, 0x5a4d
mov dword [ebp - 8], edx
cmp word [ebx], ax
jne 0x402ec3
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0xc], ecx
lea eax, [ecx + 0xf8]
cmp eax, edx
jae 0x402ec3
lea eax, [ecx + ebx]
cmp dword [eax], 0x4550
jne 0x402ec3
movzx ecx, word [eax + 4]
push esi
mov esi, 0x14c
cmp si, cx
jne 0x402e18
xor edi, edi
jmp 0x402e33
mov esi, 0x200
cmp si, cx
je 0x402e30
mov esi, 0x8664
cmp si, cx
jne 0x402ec2
xor edi, edi
inc edi
mov esi, dword [eax + 0x28]
add esi, ebx
push edx
mov edx, ebx
mov ecx, esi
call fcn.0040350f
add esp, 4
test eax, eax
je 0x402ec2
call fcn.0040352c
test eax, eax
je 0x402ec2
mov ecx, dword [ebp - 0xc]
mov edx, ebx
push edi
push dword [ebp - 8]
lea ecx, [ecx + ebx]
call fcn.00403576
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 0x402ec2
test edi, edi
jne 0x402e92
mov eax, dword [0x41c028]
mov dword [esi], eax
mov al, byte [0x41c02c]
mov byte [esi + 4], al
jmp 0x402ea3
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 0x402ec7
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 [0x41e444], 0
jne 0x40301e
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 0x40301c
push 0x413500
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
push 0x413504
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 [0x41e484], eax
cmp eax, 0xffffffff
je 0x402f9d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x41e484], 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 [0x41e484], eax
cmp eax, 0xffffffff
je 0x40301c
push esi
push 0x7fffffff
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push esi
push esi
xor edi, edi
mov dword [0x41e478], eax
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41e47c], eax
cmp dword [0x41e478], esi
je 0x40301c
test eax, eax
je 0x40301c
push esi
push 4
push 0x41c4a8
push 0x4030d0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41e480], eax
test eax, eax
je 0x40301c
push eax
mov dword [0x41e444], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d390
leave
ret
Function at 0x4030e7
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x40e97d
call fcn.0040e688
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 0x403210
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 0x40316a
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 0x4031e6
mov ebx, dword [ebp - 0x2c]
and dword [ebp - 0x2c], 0
mov edx, esi
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404308
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.00403d59
add esi, 0x18
cmp esi, ebx
jne 0x40317f
lea ebx, [edi + 0x1fb8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00403cde
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 0x40312b
xor eax, eax
call fcn.0040e643
ret
Function at 0x403576
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 0x403658
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 0x403656
cmp dword [eax + ecx + 4], 0
je 0x403656
cmp edi, dword [ebp + 8]
jae 0x403656
test edx, edx
jne 0x4035c0
mov edi, dword [edi + ebx + 0xc]
jmp 0x4035c4
mov edi, dword [edi + ebx + 0x18]
test edi, edi
je 0x403656
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.0040350f
add esp, 4
test eax, eax
je 0x403656
jmp 0x40363f
push dword [ebp + 8]
mov edx, ebx
mov ecx, esi
call fcn.0040350f
add esp, 4
test eax, eax
je 0x403645
call fcn.0040352c
test eax, eax
je 0x403645
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 0x40361b
mov byte [esi], 0xc3
jmp 0x40362c
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 0x4035e1
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 0x408356
Capabilities:
Create process on windows

Disassembly:
push 0x94
mov eax, 0x40fa67
call fcn.0040e688
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.0040b6ce
test al, al
je 0x408412
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.00408124
test eax, eax
je 0x408412
lea ecx, [ebp - 0x48]
call fcn.004082a3
test eax, eax
je 0x408412
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 0x408400
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408412
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.0040e643
ret
Function at 0x409ac7
Capabilities:
Enumerate processes

Disassembly:
push 0x294
mov eax, 0x40e755
call fcn.0040e688
mov edi, ecx
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.00404422
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 0x409b07
xor eax, eax
jmp 0x409bfb
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 0x409be1
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.00404b43
mov eax, dword [ebp - 0x290]
cmp byte [eax + 0xd], 0
jne 0x409b82
cmp ebx, dword [eax + 0x10]
jb 0x409b82
cmp eax, dword [edi]
jne 0x409b84
xor ebx, ebx
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x30]
push eax
mov edx, ebx
call fcn.0040998f
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.00403db7
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2a0]
mov ecx, edi
push eax
call fcn.00404ef9
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00403d59
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409b4c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00403d59
xor eax, eax
inc eax
call fcn.0040e643
ret

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

Disassembly:
push esi
xor esi, esi
test ecx, ecx
jne 0x409e6c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x409e87
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409e87
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 0x409e8b
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 [0x41e4e0], esi
je 0x409eca
mov eax, dword [0x41c040]
jmp 0x409f76
push esi
push 0x1a
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x409f51
push 0x413500
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 0x413504
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.00402144
xor edi, edi
inc edi
test eax, eax
je 0x409f68
call fcn.00409dd1
test eax, eax
je 0x409f68
mov esi, edi
mov dword [0x41c040], esi
mov eax, esi
mov dword [0x41e4e0], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d390
leave
ret

Function at 0x409f84
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x409fd7
mov eax, dword [0x41c038]
cmp eax, 0xffffffff
je 0x409fd7
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 0x409faf
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 0x409fd9
xor eax, eax
pop esi
leave
ret
Function at 0x409fdc
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 0x40a19e
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x25c]
jne 0x40a031
sub ecx, edx
sar ecx, 1
je 0x40a19e
test edi, edi
je 0x40a19e
xor eax, eax
mov dword [edi], eax
call fcn.004020a0
test eax, eax
jne 0x40a18f
call fcn.00409e8b
test eax, eax
je 0x40a18f
mov ecx, ebx
call fcn.00409e5b
test eax, eax
je 0x40a097
lea edx, [ebp - 0x268]
mov ecx, ebx
call fcn.0040a43a
test eax, eax
jne 0x40a097
mov dword [edi], 1
jmp 0x40a18f
push 0xffffffffffffffff
push 0x414e54
or edx, 0xffffffff
mov ecx, ebx
call fcn.00409895
mov dword [ebp - 0x264], eax
pop ecx
pop ecx
test eax, eax
jne 0x40a0bb
push 0xe
jmp 0x40a1a0
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 0x40a0e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
jmp 0x40a184
test byte [ebp - 0x258], 0x10
je 0x40a15f
lea eax, [ebp - 0x22c]
push 0x414a4c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40a15f
lea eax, [ebp - 0x22c]
push 0x414e58
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40a15f
lea eax, [ebp - 0x22c]
or edx, 0xffffffff
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.00409895
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40a159
mov edx, edi
mov ecx, esi
call fcn.00409fdc
mov dword [ebp - 0x260], eax
test eax, eax
jne 0x40a152
cmp dword [edi], eax
jne 0x40a177
mov ecx, esi
call fcn.00409880
mov esi, dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a0e7
jmp 0x40a184
mov ecx, esi
call fcn.00409880
mov esi, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x264]
call fcn.00409880
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x260]
jmp 0x40a1a1
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d390
leave
ret