joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413162
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x4733d7
call fcn.00470d79
mov esi, ecx
push dword [ebp + 8]
mov edx, esi
push ecx
mov ecx, str.zoommtg
call fcn.00412ba5
pop ecx
pop ecx
push dword [ebp + 8]
mov edx, esi
push ecx
mov ecx, str.zoomus
call fcn.00412ba5
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push 0x2001f
push ecx
push ecx
push str.SoftwareMicrosoftInternet_ExplorerLow_RightsElevationPolicyAFDA28A5_1B5F_4635_9877_73DF0D710C9A
push SysReAllocString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], eax
call fcn.00404713
mov ebx, eax
test ebx, ebx
jne 0x41320a
push ecx
push str.Zoom.exe
push str.AppName
lea ecx, [ebp - 0x1c]
call fcn.00404847
cmp dword [esi + 0x14], 8
jb 0x4131da
mov esi, dword [esi]
push ecx
push esi
push str.AppPath
lea ecx, [ebp - 0x1c]
call fcn.00404847
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 3
push eax
push 4
push 0
push str.Policy
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x41325f
push 0x2b1
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeZoomRegUtil.cpp
push 2
lea ecx, [ebp - 0x10]
call fcn.0040808d
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push ecx
mov edx, str._RegZoomAppProtocol__failed_to_set_ElevationPolicy:
mov ecx, 0x49f3a0
call fcn.00403a1c
pop ecx
mov ecx, eax
call fcn.00411296
push ecx
mov edx, 0x48793c
mov ecx, eax
call fcn.00403a1c
pop ecx
mov ecx, eax
call fcn.0040217e
lea ecx, [ebp - 0x10]
call fcn.0040822b
cmp dword [ebp - 0x1c], 0
je 0x41326e
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00470d47
ret
Function at 0x413f94
Capabilities:
Delete registry value

Disassembly:
push 0x10
mov eax, 0x4733d7
call fcn.00470d79
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
lea eax, [ecx + 4]
mov dword [ebp - 4], ebx
mov dl, byte [ecx]
lea ecx, [ebp - 0x1c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings5.0User_AgentPost_Platform
push eax
call fcn.00412025
mov esi, dword [ebp - 0x1c]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x413ff1
push str.Zoom_3.6.0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test esi, esi
je 0x413fee
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
push 0x3e2
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeZoomRegUtil.cpp
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040808d
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
mov edx, str._UnregMIMEZoommtg__Remove_user_agent_postfix_ret:
push edi
push ecx
mov ecx, 0x49f3a0
call fcn.00403a1c
pop ecx
mov ecx, eax
call fcn.00411296
push ecx
mov edx, str._flag:
mov ecx, eax
call fcn.00403a1c
pop ecx
mov ecx, eax
call fcn.0040217e
push ecx
mov edx, 0x48793c
mov ecx, eax
call fcn.00403a1c
pop ecx
mov ecx, eax
call fcn.0040217e
lea ecx, [ebp - 0x10]
call fcn.0040822b
test esi, esi
je 0x414068
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00470d47
ret 4
Function at 0x41a750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 8], ecx
mov esi, dword [edi]
and dword [edi], 0
test esi, esi
je 0x41a7a6
mov edx, 0x400000
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
cmp esi, edx
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x41a7ad
test ecx, ecx
je 0x41a7a6
mov ecx, dword [ebp - 8]
mov edx, 0x400000
test esi, esi
jne 0x41a76e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41a7a8

Function at 0x41a7b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 8], ecx
mov esi, dword [edi]
and dword [edi], 0
test esi, esi
je 0x41a80b
mov edx, 0x400000
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
cmp esi, edx
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x41a812
test ecx, ecx
je 0x41a80b
mov ecx, dword [ebp - 8]
mov edx, 0x400000
test esi, esi
jne 0x41a7d3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41a80d

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

Disassembly:
push 8
mov eax, 0x473d25
call fcn.00470d79
mov ebx, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41dccf
test al, 0x10
jbe 0x41dccf
xor eax, eax
jmp 0x41dd47
push ebx
lea ecx, [ebp - 0x14]
call fcn.0041d83d
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
push edi
call fcn.0044c8a9
pop ecx
push 0x5c
pop edx
cmp eax, 1
jle 0x41dcfc
cmp word [edi + eax*2 - 2], dx
jne 0x41dcfc
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
push edx
push edi
call fcn.0046ad62
pop ecx
pop ecx
test eax, eax
jne 0x41dd0e
push 0xf
pop esi
jmp 0x41dd3e
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
call fcn.0041dcad
mov esi, eax
test esi, esi
jne 0x41dd3e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41dd3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x41dd3e
xor esi, esi
push edi
call fcn.0041e6f0
pop ecx
mov eax, esi
call fcn.00470d47
ret
Function at 0x41e0db
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0xac], eax
je 0x41e10c
xor ebx, ebx
mov dword [edi + 0x88], 0x3f3
mov dword [edi + 0x8c], ebx
xor eax, eax
mov dword [edi + 0x90], ebx
jmp 0x41e26a
mov eax, dword [0x49fa60]
push esi
lea esi, [edi + 0x70]
cmp eax, 0xffffffff
je 0x41e139
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e139
xor ebx, ebx
mov dword [esi + 0x18], 0x3f4
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
jmp 0x41e21d
xor ecx, ecx
mov edx, edi
inc ecx
call fcn.0041e6b1
xor ebx, ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
test eax, eax
jne 0x41e15b
mov dword [esi + 0x1c], 0xe
jmp 0x41e21d
push 0xc
mov dword [esi + 0x1c], ebx
mov eax, esi
pop ecx
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x41e163
cmp dword [edi + 0x94], ebx
jne 0x41e21d
cmp dword [edi + 0xb0], ebx
jne 0x41e221
call fcn.0041de97
push str.FDICreate
push eax
mov dword [edi + 0xb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICopy
push dword [edi + 0xb0]
mov dword [edi + 0xb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDIIsCabinet
push dword [edi + 0xb0]
mov dword [edi + 0xb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDIDestroy
push dword [edi + 0xb0]
mov dword [edi + 0xbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0xc0], eax
cmp dword [edi + 0xb4], ebx
je 0x41e201
cmp dword [edi + 0xb8], ebx
je 0x41e201
cmp dword [edi + 0xbc], ebx
je 0x41e201
test eax, eax
jne 0x41e221
mov dword [edi + 0xb0], ebx
mov dword [edi + 0x88], 0x3e8
mov dword [edi + 0x8c], ebx
mov dword [edi + 0x90], ebx
xor eax, eax
jmp 0x41e269
push esi
mov esi, dword [edi + 0xb4]
mov ecx, esi
push 1
push 0x41e800
push fcn.0041e7d0
push 0x41e7a0
push 0x41e770
push 0x41e700
push fcn.0041e6f0
push fcn.0041e6e0
call dword [0x4784fc]
call esi
xor ecx, ecx
mov dword [edi + 0x94], eax
add esp, 0x24
test eax, eax
setne cl
mov eax, ecx
pop esi
pop edi
pop ebx
ret
Function at 0x41f0b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044ee9d
add esp, 0xc
pop ebp
ret 0xc

Function at 0x41f120
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
test dword [ebp + 0xc], 0x100
je 0x41f13b
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push 0x40
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00450ddf
mov ecx, dword [ebp - 4]
or edx, 0xffffffff
add esp, 0x18
test eax, eax
cmovne ecx, edx
mov eax, ecx
leave
ret 0xc

Function at 0x41f165
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41f1ea
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x41f1d6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
test esi, 0x100
ja 0x41f1c8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 8]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
leave
ret 0x10

Function at 0x420272
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, ecx
push esi
push 0x4202a0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [esi + 0x10], eax
test ecx, ecx
je 0x42029b
cmp dword [esi + 0xc], eax
jbe 0x42029b
mov eax, dword [ecx]
mov dword [esi + 0x10], 1
pop esi
ret
Function at 0x426923
Capabilities:
Enumerate processes

Disassembly:
push 0x2b4
mov eax, 0x47410f
call fcn.00470dac
mov ebx, ecx
mov esi, dword [ebx]
push dword [esi + 4]
push ebx
call fcn.00428355
push 0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
and dword [ebx + 4], 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x294], esi
cmp esi, 0xffffffff
jne 0x426969
xor eax, eax
jmp 0x426b22
push 0x228
lea eax, [ebp - 0x288]
mov dword [ebp - 0x28c], 0x22c
push 0
push eax
call fcn.00469380
xor ecx, ecx
mov dword [ebp - 0x3c], 7
xor eax, eax
mov dword [ebp - 0x50], ecx
add esp, 0xc
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x40], ecx
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x28c]
mov dword [ebp - 4], ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x426b08
mov esi, dword [ebp - 0x274]
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x290], esi
push eax
mov ecx, ebx
call fcn.00428515
mov eax, dword [ebp - 0x2ac]
cmp byte [eax + 0xd], 0
jne 0x4269f0
cmp esi, dword [eax + 0x10]
jb 0x4269f0
cmp eax, dword [ebx]
jne 0x4269f2
xor esi, esi
mov ecx, dword [ebp - 0x284]
lea eax, [ebp - 0x58]
push eax
mov edx, esi
call fcn.004267b4
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], eax
xor eax, eax
pop ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x50]
push eax
call fcn.00406bc2
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c0]
mov ecx, ebx
push eax
call fcn.00428515
mov esi, eax
lea edi, [ebp - 0x2a8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x2a0]
cmp byte [ecx + 0xd], 0
jne 0x426a63
mov eax, dword [ebp - 0x38]
cmp eax, dword [ecx + 0x10]
jae 0x426ae8
cmp dword [ebx + 4], 0x4ec4ec4
je 0x426b28
mov edi, dword [ebx]
mov dword [ebp - 0x29c], ebx
mov byte [ebp - 4], 2
and dword [ebp - 0x298], 0
push 0x34
call fcn.00465444
mov esi, eax
xor eax, eax
pop ecx
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x34]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esi + 0x18], ecx
lea ecx, [esi + 0x1c]
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406c2b
mov dword [esi], edi
lea ecx, [ebp - 0x29c]
mov dword [esi + 4], edi
xor eax, eax
mov dword [esi + 8], edi
mov word [esi + 0xc], ax
mov dword [ebp - 0x298], eax
call fcn.0042859f
push esi
push dword [ebp - 0x2a4]
mov ecx, ebx
push dword [ebp - 0x2a8]
call fcn.0040cb38
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004042cc
mov esi, dword [ebp - 0x294]
lea eax, [ebp - 0x28c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4269ba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x50]
call fcn.004042cc
xor eax, eax
inc eax
call fcn.00470d5b
ret
call fcn.00409749
int3
Function at 0x426f95
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
test ecx, ecx
jne 0x426fa6
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x426fc1
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x426fc1
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 0x427097
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x250
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], edx
push 0
push eax
mov esi, ecx
call fcn.00469380
add esp, 0xc
or edi, 0xffffffff
test esi, esi
je 0x4271fe
push esi
call fcn.0044c8a9
pop ecx
test eax, eax
je 0x4271fe
push edi
push 0x48a5c4
or edx, edi
mov ecx, esi
call fcn.0042662b
mov ebx, eax
mov dword [ebp - 0x268], ebx
pop ecx
pop ecx
test ebx, ebx
jne 0x42710f
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4271f2
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4271eb
mov ebx, esi
test byte [ebp - 0x25c], 0x10
je 0x427165
lea eax, [ebp - 0x230]
push 0x48a5c8
push eax
call fcn.0044e898
pop ecx
pop ecx
test eax, eax
je 0x4271cf
lea eax, [ebp - 0x230]
push 0x488fdc
push eax
call fcn.0044e898
pop ecx
pop ecx
test eax, eax
je 0x4271cf
lea eax, [ebp - 0x230]
or edx, 0xffffffff
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.0042662b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4271cf
test byte [ebp - 0x25c], 0x10
je 0x4271ac
mov ecx, esi
call fcn.00426f95
test eax, eax
jne 0x4271a3
mov edx, dword [ebp - 0x260]
mov ecx, esi
push eax
call fcn.00427097
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4271c8
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
push 0
push eax
push esi
call dword [0x4784fc]
call dword [ebp - 0x260]
mov ecx, esi
call fcn.004265ff
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42712a
mov ebx, dword [ebp - 0x268]
mov ecx, ebx
call fcn.004265ff
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x427208
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465436
leave
ret
Function at 0x42725e
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x49d874]
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 fcn.00469380
add esp, 0xc
cmp dword [0x4a06f4], esi
je 0x42729d
mov eax, dword [0x49db44]
jmp 0x427346
push esi
push 0x1a
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x427321
push 0x4849c0
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.0044d4cb
add esp, 0xc
lea eax, [ebp - 0x408]
push str.Zoom
push edi
push eax
call fcn.0044d4cb
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 fcn.0044d4cb
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 [0x49db5c], eax
call fcn.00426f3e
xor edi, edi
inc edi
test eax, eax
je 0x427338
call fcn.00426dcb
test eax, eax
je 0x427338
mov esi, edi
mov dword [0x49db44], esi
mov eax, esi
mov dword [0x4a06f4], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00465436
leave
ret

Function at 0x427354
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x427399
mov eax, dword [0x49db5c]
cmp eax, 0xffffffff
je 0x427399
push edi
push 2
xor edi, edi
push edi
push edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push esi
call fcn.0044c8a9
pop ecx
add eax, eax
push eax
push esi
push dword [0x49db5c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
jmp 0x42739b
xor eax, eax
pop esi
leave
ret
Function at 0x42739e
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
lea eax, [ebp - 0x258]
mov esi, edx
push 0
push eax
mov edi, ecx
or ebx, 0xffffffff
call fcn.00469380
and dword [ebp - 0x260], 0
add esp, 0xc
and dword [ebp - 0x264], 0
test edi, edi
je 0x427547
push edi
call fcn.0044c8a9
pop ecx
test eax, eax
je 0x427547
test esi, esi
je 0x427547
and dword [esi], 0
call fcn.00426e9a
test eax, eax
jne 0x427538
call fcn.0042725e
test eax, eax
je 0x427538
mov ecx, edi
call fcn.00426f95
test eax, eax
je 0x427442
lea edx, [ebp - 0x264]
mov ecx, edi
call fcn.004277d9
test eax, eax
jne 0x427442
mov dword [esi], 1
jmp 0x427538
push 0xffffffffffffffff
push 0x48a5c4
or edx, 0xffffffff
mov ecx, edi
call fcn.0042662b
mov dword [ebp - 0x268], eax
pop ecx
pop ecx
test eax, eax
jne 0x427466
push 0xe
jmp 0x427549
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x25c], ebx
cmp ebx, 0xffffffff
jne 0x427492
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
jmp 0x42752d
test byte [ebp - 0x258], 0x10
je 0x427508
lea eax, [ebp - 0x22c]
push 0x48a5c8
push eax
call fcn.0044e898
pop ecx
pop ecx
test eax, eax
je 0x427508
lea eax, [ebp - 0x22c]
push 0x488fdc
push eax
call fcn.0044e898
pop ecx
pop ecx
test eax, eax
je 0x427508
lea eax, [ebp - 0x22c]
or edx, 0xffffffff
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.0042662b
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x427502
mov edx, esi
mov ecx, ebx
call fcn.0042739e
mov dword [ebp - 0x260], eax
test eax, eax
jne 0x4274fb
cmp dword [esi], eax
jne 0x427520
mov ecx, ebx
call fcn.004265ff
mov ebx, dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x427492
jmp 0x42752d
mov ecx, ebx
call fcn.004265ff
mov ebx, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x268]
call fcn.004265ff
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x260]
jmp 0x42754a
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465436
leave
ret
Function at 0x427586
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x220], 0x28
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x21c], 0x2a
mov dword [ebp - 0x218], 0x26
mov dword [ebp - 0x214], 0x24
push esi
push edi
test ebx, ebx
je 0x4277c8
mov eax, dword [0x4a0708]
xor esi, esi
test eax, eax
jne 0x42778d
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x4a0708], eax
test eax, eax
je 0x4277c8
mov dword [0x4a06f8], 4
mov edi, esi
push 0x20c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00469380
mov ebx, dword [ebp + edi - 0x220]
lea eax, [ebp - 0x210]
add esp, 0xc
push esi
push ebx
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x427707
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp ebx, 0x28
jne 0x42766f
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x4276a6
cmp ebx, 0x26
jne 0x4276b3
mov eax, dword [0x4a0708]
push dword [edi + eax - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.0044e898
pop ecx
pop ecx
test eax, eax
jne 0x4276b3
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x48a5ec
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x210]
push eax
call fcn.0044c8a9
pop ecx
lea ebx, [eax + eax]
lea eax, [ebx + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x4a0708]
mov dword [edi + ecx], eax
test eax, eax
je 0x42770d
push ebx
lea ecx, [ebp - 0x210]
push ecx
push eax
call fcn.00468dd0
add edi, 4
add esp, 0xc
cmp edi, 0x10
jb 0x42760d
mov eax, dword [0x4a0708]
jmp 0x42775c
mov ecx, dword [0x4a0708]
test ecx, ecx
je 0x4277c8
mov eax, dword [0x4a06f8]
mov edi, esi
test eax, eax
je 0x427746
mov edx, dword [ecx + edi*4]
test edx, edx
je 0x427741
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x4a0708]
mov eax, dword [0x4a06f8]
inc edi
cmp edi, eax
jb 0x427720
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
mov dword [0x4a0708], eax
test eax, eax
je 0x4277c8
mov dword [ebp - 0x220], 0x28
mov dword [ebp - 0x21c], 0x2a
mov dword [ebp - 0x218], 0x26
mov dword [ebp - 0x214], 0x24
jmp 0x4275db
cmp dword [0x4a06f8], esi
jbe 0x4277c8
mov ebx, dword [ebp - 0x224]
push dword [eax + esi*4]
push ebx
call fcn.0044c8a9
pop ecx
mov edx, eax
mov ecx, ebx
call fcn.00426706
pop ecx
test eax, eax
jne 0x4277c3
inc esi
cmp esi, dword [0x4a06f8]
jae 0x4277c8
mov eax, dword [0x4a0708]
jmp 0x42779b
xor eax, eax
inc eax
jmp 0x4277ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465436
leave
ret