joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428bf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4e9688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp dword [edi + 0x7c], 0
jne 0x428d64
lea eax, [edi + 0x34]
push ebx
push eax
mov dword [ebp - 0x20], eax
call fcn.00427e40
test eax, eax
jne 0x428d64
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428c56
mov eax, ebx
call fcn.00424110
test eax, eax
je 0x428d64
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x428d64
push str.CreateTrayClient
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x428d5d
lea ecx, [ebp - 0x14]
push ecx
push 1
mov dword [ebp - 0x14], 0
call eax
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x428d5a
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0xc]
jb 0x428d51
mov edi, dword [edi + 0x84]
mov dword [ebp - 0x18], 0
test edi, edi
je 0x428d51
mov eax, dword [esi]
mov edx, dword [eax + 8]
lea ecx, [ebp - 0x18]
push ecx
push edi
mov ecx, esi
call edx
test eax, eax
je 0x428d51
lea eax, [ebp - 0x4c]
push eax
call fcn.00428d80
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov edx, ebx
lea edi, [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
call fcn.00425100
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x44], esi
mov esi, dword [ebp - 0x20]
push ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
call fcn.004279c0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x428d32
push str.appd.dll
push eax
call fcn.00491c26
add esp, 8
test eax, eax
jne 0x428d32
mov edx, dword [ebp - 0x10]
push edx
call fcn.00428a00
lea eax, [ebp - 0x4c]
call fcn.00428de0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x429fd0
Capabilities:
Enumerate processes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x650], 1
mov word [ebp - 0x414], ax
call fcn.00497780
add esp, 0xc
lea edx, [ebp - 0x658]
push edx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x650]
push ecx
push 0x4c4348
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeTray.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x658], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x42a05d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 2
mov dword [ebp - 0x654], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x644], esi
cmp esi, 0xffffffff
je 0x42a0a2
lea edx, [ebp - 0x640]
push edx
push esi
mov dword [ebp - 0x640], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42a0b3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x61c]
push str.QHSafeTray.exe
push eax
call fcn.00491c26
add esp, 8
test eax, eax
jne 0x42a178
mov edx, dword [ebp - 0x638]
lea ecx, [ebp - 0x64c]
push ecx
push edx
mov dword [ebp - 0x64c], eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x42a178
mov eax, dword [ebp - 0x654]
cmp dword [ebp - 0x64c], eax
jne 0x42a178
mov ecx, dword [ebp - 0x638]
push ecx
push 0
push 0x410
call ebx
mov esi, eax
test esi, esi
je 0x42a172
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.00497780
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x42a16f
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.00491c26
add esp, 8
test eax, eax
je 0x42a18f
push esi
call edi
mov esi, dword [ebp - 0x644]
lea ecx, [ebp - 0x640]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42a0c1
jmp 0x42a1a4
mov edx, dword [ebp - 0x638]
push esi
mov dword [ebp - 0x648], edx
call edi
mov esi, dword [ebp - 0x644]
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x648]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x42a1c0
Capabilities:
Enumerate processes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov dword [ebp - 0x648], 1
mov word [ebp - 0x414], ax
call fcn.00497780
xor eax, eax
add esp, 0xc
lea edx, [ebp - 0x64c]
push edx
mov dword [0x4f10cc], eax
mov dword [0x4f10d0], eax
mov dword [0x4f10d4], eax
mov dword [0x4f10d8], eax
mov dword [0x4f10dc], eax
mov dword [0x4f10e0], eax
mov dword [0x4f10e4], eax
mov dword [0x4f10e8], eax
mov dword [0x4f10ec], eax
mov dword [0x4f10f0], eax
mov dword [0x4f10f4], eax
mov dword [0x4f10f8], eax
mov dword [0x4f10fc], eax
mov dword [0x4f1100], eax
mov dword [0x4f1104], eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x648]
push ecx
push 0x4c4348
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeTray.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x64c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42a394
push esi
push eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x644], esi
cmp esi, 0xffffffff
je 0x42a393
lea edx, [ebp - 0x640]
push edx
push esi
mov dword [ebp - 0x640], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42a2cf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, 0x4f10cc
lea esp, [esp]
lea eax, [ebp - 0x61c]
push str.QHSafeTray.exe
push eax
call fcn.00491c26
add esp, 8
test eax, eax
jne 0x42a375
mov ecx, dword [ebp - 0x638]
push ecx
push eax
push 0x410
call edi
mov esi, eax
test esi, esi
je 0x42a36f
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.00497780
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x42a368
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.00491c26
add esp, 8
test eax, eax
jne 0x42a368
mov ecx, dword [ebp - 0x638]
mov dword [ebx], ecx
add ebx, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x644]
lea edx, [ebp - 0x640]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42a2e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x42c500
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
push eax
push ecx
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x42c523
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call fcn.00491d08
mov edi, eax
add esp, 4
test edi, edi
jne 0x42c53a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push edi
push esi
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42c573
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x4cd228
push edi
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp + 0xc]
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
push edi
call fcn.00491ec3
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42c9d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x11c
lea eax, [ebp - 0x530]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x534], esi
call fcn.00497780
push 0x11c
push 0
push ebx
mov dword [ebp - 0x530], 0x11c
call fcn.00497780
add esp, 0x18
push ebx
mov dword [ebx], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
jne 0x42ca45
call fcn.0042c8d0
test eax, eax
je 0x42ca45
mov dword [esi + 4], 0
jmp 0x42cb32
push str.RtlGetVersion
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42ca69
lea ecx, [ebp - 0x530]
push ecx
call eax
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
push edi
lea edi, [eax + edx*2]
mov eax, dword [ebp - 0x52c]
mov edx, dword [ebp - 0x528]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
cmp eax, edi
jle 0x42ca9d
mov ecx, 0x47
lea esi, [ebp - 0x530]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.00497780
add esp, 0xc
lea esi, [ebp - 0x414]
call fcn.0042c920
test eax, eax
jl 0x42cb24
lea edx, [ebp - 0x568]
push edx
mov eax, esi
call fcn.0042cb50
test eax, eax
je 0x42cb24
mov ecx, dword [ebp - 0x558]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp edi, edx
jge 0x42cb15
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x554]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x534]
shr eax, 0x10
mov dword [ebx + 0xc], eax
mov dword [ecx + 4], 1
jmp 0x42cb31
mov edx, dword [ebp - 0x534]
mov dword [edx + 4], 0
jmp 0x42cb31
mov eax, dword [ebp - 0x534]
mov dword [eax + 4], 0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret 4
Function at 0x42cb50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x42cbd4
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42cbcd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42cbcd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x42cbc6
mov ecx, dword [ebp - 4]
push ecx
call fcn.00491d08
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42cbc6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push edx
push eax
push ebx
call fcn.004993f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp ebx, esi
je 0x42cc12
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x4cd228
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42cc09
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov esi, 1
push ebx
call fcn.00491ec3
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
test esi, esi
jne 0x430c4e
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0x23
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x430c48
mov ecx, dword [ebp - 4]
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x430c48
mov eax, esi
lea edx, [eax + 2]
jmp 0x430c80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430c80
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
jne 0x430c9e
xor edx, edx
mov word [esi + eax*2 - 2], dx
push 0x104
push str.360SafeLogInfo
push 0x104
push esi
call fcn.00496b18
add esp, 0x10
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4310e0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x416]
push ecx
mov edi, edx
mov word [ebp - 0x418], ax
call fcn.00497780
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call fcn.00497780
push 0x24c
lea ecx, [ebp - 0x664]
push 0
push ecx
mov dword [ebp - 0x668], 0
call fcn.00497780
push str..log
push edi
add esi, 0x430
push esi
lea edx, [ebp - 0x418]
push str._s_s_s
push edx
mov ecx, 0x104
call fcn.004236a0
add esp, 0x38
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4311e0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [ebp - 0x668], 0x10
jne 0x4311c7
lea edx, [ebp - 0x63c]
push edx
push esi
lea eax, [ebp - 0x210]
push str._s_s
push eax
mov ecx, 0x104
call fcn.004236a0
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call ebx
lea edx, [ebp - 0x668]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x431194
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x431200
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push str..log2
push str.New360_formal_
lea esi, [eax + 0x430]
mov edi, ecx
xor ecx, ecx
push esi
lea edx, [ebp - 0x418]
mov word [ebx], cx
push str._s_s_s
push edx
mov ecx, 0x104
call fcn.004236a0
add esp, 0x14
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x66c], eax
cmp eax, 0xffffffff
je 0x431351
test byte [ebp - 0x668], 0x10
jne 0x4312ae
lea edx, [ebp - 0x63c]
push edx
push esi
lea eax, [ebp - 0x210]
push str._s_s
push eax
mov ecx, 0x104
call fcn.004236a0
add esp, 0x10
test edi, edi
je 0x4312ae
lea ecx, [ebp - 0x210]
push ecx
call fcn.00431370
test eax, eax
jne 0x4312eb
mov eax, dword [ebp - 0x66c]
lea edx, [ebp - 0x668]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x431270
mov eax, dword [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret 8
lea esi, [ebp - 0x210]
mov edx, 0x104
mov eax, ebx
sub esi, ebx
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x431320
movzx ecx, word [esi + eax]
test cx, cx
je 0x431320
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x431300
jmp 0x431324
test edx, edx
jne 0x431327
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret 8
Function at 0x431440
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa40
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.Newctrl.lck
lea eax, [ebx + 0x430]
push eax
lea ecx, [ebp - 0xa34]
push str._s_s
push ecx
mov ecx, 0x104
mov dword [ebp - 0xa38], 0
call fcn.004236a0
add esp, 0x10
lea edx, [ebp - 0xa34]
push edx
lea edi, [ebp - 0xa40]
call fcn.00431370
test eax, eax
jne 0x4314b6
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret 4
mov edx, str.360_tmp_
mov ecx, ebx
call fcn.004310e0
mov edx, str.360_formal_
mov ecx, ebx
call fcn.004310e0
lea eax, [ebp - 0x41c]
push eax
push ebx
lea ecx, [ebp - 0xa3c]
call fcn.00431200
test eax, eax
jne 0x43155c
lea ecx, [ebp - 0x624]
push ecx
push ebx
call fcn.00431900
test eax, eax
je 0x43154d
xor edx, edx
cmp dx, word [ebp - 0x624]
je 0x43154d
lea eax, [ebp - 0x82c]
lea esi, [ebp - 0x624]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x431531
movzx ecx, word [esi + eax]
test cx, cx
je 0x431531
add eax, 2
sub edx, 1
jne 0x431516
lea eax, [ebp - 0x624]
push eax
lea edx, [ebp - 0x214]
mov ecx, ebx
call fcn.00431aa0
test eax, eax
jne 0x4315e1
mov dword [ebp - 0xa38], 2
jmp 0x431625
xor ecx, ecx
cmp cx, word [ebp - 0x41c]
je 0x43154d
push str..up2
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x214]
push 0x4c4c4c
push eax
mov ecx, 0x104
call fcn.004236a0
add esp, 0x10
lea esi, [ebp - 0xa3c]
call fcn.004313e0
push 1
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x431625
lea eax, [ebp - 0x82c]
lea esi, [ebp - 0x41c]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4315e1
movzx ecx, word [esi + eax]
test cx, cx
je 0x4315e1
add eax, 2
sub edx, 1
jne 0x4315c6
lea eax, [ebp - 0x214]
push eax
call fcn.00431650
test eax, eax
jne 0x431600
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x431625
lea edx, [ebp - 0x214]
push edx
mov esi, ebx
call fcn.00431780
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0xa38], 1
lea esi, [ebp - 0xa40]
call fcn.004313e0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xa38]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret 4
Function at 0x431650
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push edi
push 4
push edi
push 3
push 0x12019f
push eax
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xdc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43175f
push 0xc4
lea eax, [ebp - 0xd0]
push edi
push eax
mov dword [ebp - 0xd4], edi
call fcn.00497780
add esp, 0xc
push edi
lea ecx, [ebp - 0xdc]
push ecx
push 0xc8
lea edx, [ebp - 0xd4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x431758
mov eax, 0xc8
cmp dword [ebp - 0xdc], eax
jne 0x431758
cmp dword [ebp - 0xd4], 0x5148534c
jne 0x431758
cmp dword [ebp - 0xd0], eax
jne 0x431758
push edi
call fcn.00494269
add esp, 4
push edi
push edi
push edi
push esi
mov dword [ebp - 0xc4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x431758
push edi
lea eax, [ebp - 0xd8]
push eax
push 0xc8
lea ecx, [ebp - 0xd4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x431758
cmp dword [ebp - 0xd8], 0xc8
jne 0x431758
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00491281
mov esp, ebp
pop ebp
ret 4
Function at 0x431900
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push str..log2
lea esi, [eax + 0x430]
push str.New360_tmp_
xor ecx, ecx
push esi
lea edx, [ebp - 0x418]
mov word [ebx], cx
push str._s_s_s
push edx
mov ecx, 0x104
mov dword [ebp - 0x670], esi
call fcn.004236a0
add esp, 0x14
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x66c], eax
cmp eax, 0xffffffff
je 0x431a7a
test byte [ebp - 0x668], 0x10
jne 0x431a51
lea edx, [ebp - 0x63c]
push edx
push esi
lea eax, [ebp - 0x210]
push str._s_s
push eax
mov ecx, 0x104
call fcn.004236a0
mov ecx, dword [ebp - 0x650]
mov edx, dword [ebp - 0x654]
add esp, 0x10
push ecx
push edx
call fcn.00431870
test eax, eax
je 0x431a51
lea eax, [ebp - 0x210]
push eax
lea edi, [ebp - 0x674]
call fcn.00431370
test eax, eax
je 0x431a51
lea esi, [ebp - 0x210]
mov edx, 0x104
mov eax, ebx
sub esi, ebx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x431a02
movzx ecx, word [esi + eax]
test cx, cx
je 0x431a02
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4319e2
jmp 0x431a06
test edx, edx
jne 0x431a09
sub eax, 2
xor edx, edx
lea esi, [ebp - 0x674]
mov word [eax], dx
call fcn.004313e0
mov eax, dword [ebp - 0x64c]
push 1
push 0
push 0
push eax
call fcn.00499860
mov ecx, dword [ebp - 0x648]
xor esi, esi
add eax, ecx
adc edx, esi
test eax, eax
jne 0x431a6d
test edx, edx
jne 0x431a6d
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x670]
xor edx, edx
mov word [ebx], dx
mov ecx, dword [ebp - 0x66c]
lea eax, [ebp - 0x668]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x431974
mov edx, dword [ebp - 0x66c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret 8