joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x58]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x417ac9
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call esi
push dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call esi
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
shr ecx, 2
test cl, 1
je 0x417b01
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
movzx ecx, si
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0
push 0
push dword [edi + 0x28]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x417b32
or byte [edi + 0x5c], 2
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418771
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41873f
cmp eax, 2
jne 0x41875b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x41876b
test ecx, ecx
je 0x418766
test cl, 1
jne 0x41875b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x41876b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41c580
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4e1370]
test al, 1
jne 0x41c5bd
or eax, 1
mov dword [0x4e136c], 0xf
push 0x4bc460
mov dword [0x4e1370], eax
mov dword [0x4e1368], 0
mov byte [0x4e1358], 0
call fcn.00494a1a
add esp, 4
cmp dword [0x4e1368], 0
push esi
je 0x41c5f2
mov esi, dword [ebp + 8]
mov ecx, esi
push 0xffffffffffffffff
push 0
push 0x4e1358
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00406190
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push 0x248
push 0x40
call esi
mov edi, eax
mov dword [ebp - 4], 0x248
lea eax, [ebp - 4]
push eax
push edi
call sub.IPHLPAPI.DLL_GetNetworkParams
cmp eax, 0x6f
jne 0x41c62a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
push 0x40
call esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call sub.IPHLPAPI.DLL_GetNetworkParams
test eax, eax
jne 0x41c6af
cmp byte [edi + 0x110], al
lea edx, [edi + 0x110]
jne 0x41c64a
xor ecx, ecx
jmp 0x41c659
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c650
sub ecx, esi
push ecx
push edx
mov ecx, 0x4e1358
call fcn.00405e20
mov esi, dword [edi + 0x10c]
test esi, esi
je 0x41c6af
push ebx
push 1
push 0x4c0bb8
mov ecx, 0x4e1358
call fcn.00405e20
cmp byte [esi + 4], 0
lea edx, [esi + 4]
jne 0x41c68e
xor ecx, ecx
jmp 0x41c69c
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c693
sub ecx, ebx
push ecx
push edx
mov ecx, 0x4e1358
call fcn.00405e20
mov esi, dword [esi]
test esi, esi
jne 0x41c670
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [ebp + 8]
mov ecx, esi
push 0xffffffffffffffff
push 0
push 0x4e1358
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00406190
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d270
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x40], ebx
call fcn.00427660
lea eax, [ebp - 0x58]
push eax
call fcn.0041c120
add esp, 4
test al, al
lea eax, [ebp - 0x38]
push 0x38
push ebx
push eax
je 0x41d33d
call fcn.00496a10
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
mov dword [ebp - 0x38], 0x40
cmovae eax, dword [ebp - 0x58]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], str.open
cmp dword [eax + 0x14], 8
jb 0x41d2d8
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41d3e7
push 2
call fcn.004235b0
add esp, 4
test al, al
je 0x41d335
push 2
push 0x113
push str.d:webapps_b_build_slave_repo_build_srcwow_toolsonline_installerutilswow_installer_utils.cc
lea ecx, [ebp - 0x108]
call fcn.00422790
add eax, 8
push str.Failed_to_open_url_by_uc_browser.
push eax
call fcn.00401950
add esp, 8
mov ebx, 1
test bl, 1
jmp 0x41d3c9
call fcn.00496a10
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
cmp dword [eax + 0x14], 8
jb 0x41d35e
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41d3e7
push 2
call fcn.004235b0
add esp, 4
test al, al
je 0x41d3c6
push esi
push 2
push 0x11e
push str.d:webapps_b_build_slave_repo_build_srcwow_toolsonline_installerutilswow_installer_utils.cc
lea ecx, [ebp - 0x108]
call fcn.00422790
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.Failed_to_open_url_by_default_browser__error_code_is
push eax
call fcn.00401950
add esp, 8
mov ecx, eax
call fcn.0040b1d0
mov ebx, 2
pop esi
test bl, 2
je 0x41d3d6
lea ecx, [ebp - 0x108]
call fcn.00422910
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.00401f50
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x58]
mov bl, 1
call fcn.00401f50
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41dd90
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41ddaf
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x41ddc7
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41de18
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x41de23
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test eax, eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41e8d0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push 0x4c0dcc
push 1
push 0
push 0x4cdf78
mov dword [ebp - 8], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x41e908
xor bl, bl
jmp 0x41e991
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x41e91e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc]
call fcn.0043e170
mov ecx, dword [esi]
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push dword [eax]
push esi
call dword [ecx + 0xc]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.0043e190
test esi, esi
pop esi
js 0x41e982
cmp byte [ebp + 8], 0
je 0x41e96f
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x41e982
mov eax, dword [ebp + 0x10]
mov bl, 1
mov ecx, dword [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax], ecx
jmp 0x41e991
mov eax, dword [ebp - 4]
xor bl, bl
test eax, eax
je 0x41e991
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x41e99e
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fdc0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00496a10
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.0049e683
add esp, 0x18
cmp word [ebp - 0x21e], 0x3a
jne 0x41fe10
cmp word [ebp - 0x21c], 0x5c
jne 0x41fe10
xor eax, eax
mov word [ebp - 0x21a], ax
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0xc], 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x41feb1
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00494d80
movss xmm1, dword [0x4c103c]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, xmm1
mulss xmm0, xmm1
movss dword [eax], xmm0
call fcn.00494d80
movss xmm1, dword [0x4c103c]
mov eax, dword [ebp + 0x10]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, xmm1
mulss xmm0, xmm1
movss dword [eax], xmm0
mov al, 1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x421a60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
and byte [esi + 0xc], 9
mov al, byte [esi + 0xc]
test al, 1
je 0x421a9b
test al, 8
jne 0x421a9b
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x421a9b
or byte [esi + 0xc], 4
mov cl, byte [esi + 0xc]
test eax, 0x21000000
jne 0x421a9b
or cl, 2
mov byte [esi + 0xc], cl
test byte [esi + 0xc], 2
je 0x421abb
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.00421ad0
pop esi
pop ebp
ret 4
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
Function at 0x422910
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.004226a0
add esp, 4
lea eax, [ebp - 0x41c]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.0040c6f0
mov eax, dword [0x4e3440]
test eax, eax
je 0x422976
lea ecx, [ebp - 0x41c]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x422ac3
test byte [0x4de1ec], 2
je 0x42299c
cmp dword [ebp - 0x408], 0x10
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4229a1
cmp dword [ebx], 2
jl 0x4229e2
cmp dword [ebp - 0x408], 0x10
lea edi, [ebp - 0x41c]
mov esi, dword [ebp - 0x40c]
cmovae edi, dword [ebp - 0x41c]
push 2
call fcn.0049aa55
push eax
push 1
push esi
push edi
call fcn.0049edbf
push 2
call fcn.0049aa55
push eax
call fcn.0049eb2e
lea edi, [ebx + 8]
add esp, 0x1c
lea esi, [ebx + 0xc]
test byte [0x4de1ec], 1
je 0x422a24
call fcn.00423430
test al, al
je 0x422a24
cmp dword [ebp - 0x408], 0x10
lea ecx, [ebp - 0x438]
push 0
push ecx
push dword [ebp - 0x40c]
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
push dword [0x4e3434]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x422ac3
mov ecx, 0x400
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x40c], ecx
cmovb ecx, dword [ebp - 0x40c]
cmp dword [ebp - 0x408], 0x10
cmovae eax, dword [ebp - 0x41c]
test ecx, ecx
je 0x422a68
push ecx
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00496490
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call fcn.00440390
add esp, 4
cmp dword [0x4e343c], 0
je 0x422abe
lea eax, [ebp - 0x434]
mov ecx, esi
push eax
call fcn.0040c6f0
lea eax, [ebp - 0x434]
push eax
call dword [0x4e343c]
mov eax, dword [ebp - 0x420]
add esp, 4
cmp eax, 0x10
jb 0x422ac3
inc eax
lea ecx, [ebp - 0x434]
push eax
push dword [ebp - 0x434]
call fcn.00406730
jmp 0x422ac3
call fcn.0043fb80
mov eax, dword [ebp - 0x408]
cmp eax, 0x10
jb 0x422ae1
inc eax
lea ecx, [ebp - 0x41c]
push eax
push dword [ebp - 0x41c]
call fcn.00406730
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.0040b150
push esi
mov dword [esi], 0x4bf7bc
call fcn.00493dfa
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret
Function at 0x4263d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4e3448], 0
je 0x4263f9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.00494794
add esp, 4
test eax, eax
je 0x426417
push 0
mov ecx, eax
call fcn.00424f90
mov dword [0x4e3448], eax
jmp 0x426421
mov dword [0x4e3448], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040cb10
mov ecx, dword [0x4e3448]
lea eax, [ebp - 0x1c]
push eax
call fcn.00426890
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x426454
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00406780
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret

Function at 0x426890
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], cx
lea ecx, [ebp - 0x1c]
push ecx
push 3
push eax
mov dword [ebp - 0xc], 0
call fcn.0042e2c0
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x426908
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x20]
call fcn.004265d0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x42691d
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00406780
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0049510d
mov esp, ebp
pop ebp
ret 4
Function at 0x42a300
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00429150
test al, al
jne 0x42a372
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00429150
test al, al
jne 0x42a372
cmp dword [edi + 0x10], 0x104
jae 0x42a372
cmp dword [esi + 0x10], 0x104
jae 0x42a372
cmp dword [esi + 0x14], 8
jb 0x42a33b
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x42a343
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x42a372
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a372
test al, 1
je 0x42a36c
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
mov al, 1
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret

Function at 0x42a380
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
cmp dword [esi + 0x14], 8
jb 0x42a3aa
mov ebx, dword [esi]
jmp 0x42a3ac
mov ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a3ec
test al, 0x10
je 0x42a3cf
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x42a3d9
mov dword [edi], 0xfffffff7
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00428100
cmp dword [esi + 0x14], 8
jb 0x42a401
mov ecx, dword [esi]
jmp 0x42a403
mov ecx, esi
push dword [esi + 0x10]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push ecx
cmovae eax, dword [ebp - 0x1c]
push dword [ebp - 0xc]
push eax
call fcn.0040c040
add esp, 0x10
test eax, eax
jne 0x42a430
test edi, edi
je 0x42a47a
mov dword [edi], 0xfffffffc
xor bl, bl
jmp 0x42a480
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.0042a380
add esp, 8
test al, al
je 0x42a47a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42a47e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x42a46b
push esi
call fcn.0042a7a0
add esp, 4
test al, al
jne 0x42a47e
test edi, edi
je 0x42a47a
push ebx
call fcn.00441d20
add esp, 4
mov dword [edi], eax
xor bl, bl
jmp 0x42a480
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.00401f50
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret
Function at 0x42a4a0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x528]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 3
push 0
push eax
call fcn.0043e420
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x528]
call fcn.0043e620
cmp dword [ebp - 0xc], 0
je 0x42a5c1
mov bl, byte [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x528]
call fcn.0043e580
mov ecx, dword [ebp - 0x284]
test cl, 1
je 0x42a53c
test bl, bl
jne 0x42a526
lea ecx, [ebp - 0x284]
call fcn.0043e610
test al, al
jne 0x42a53c
mov ecx, dword [ebp - 0x284]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x284]
call fcn.0043e610
test al, al
je 0x42a576
test bl, bl
je 0x42a58c
push 1
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0042a4a0
add esp, 0xc
test al, al
je 0x42a5e9
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call edi
jmp 0x42a588
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42a5e9
lea ecx, [ebp - 0x284]
call fcn.00495c20
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x528]
call fcn.0043e620
push eax
lea ecx, [ebp - 0x1c]
call fcn.00427680
lea ecx, [ebp - 0x34]
call fcn.00401f50
cmp dword [ebp - 0xc], 0
jne 0x42a4f0
lea ecx, [ebp - 0x1c]
call fcn.00401f50
mov bl, 1
lea ecx, [ebp - 0x528]
call fcn.0043e500
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x284]
call fcn.00495c20
lea ecx, [ebp - 0x1c]
call fcn.00401f50
xor bl, bl
jmp 0x42a5cb
Function at 0x42a600
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x42a633
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x42a788
push esi
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00427f60
push 2
push 0
push 0x4c13a0
mov ecx, eax
call fcn.00427350
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00401f50
cmp esi, 0xffffffff
pop esi
je 0x42a6b1
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00427f60
push dword [ebp + 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00428100
push eax
call fcn.0042a4a0
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.00401f50
lea ecx, [ebp - 0x34]
call fcn.00401f50
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x42a6bb
mov eax, dword [edi]
jmp 0x42a6bd
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x42a621
test al, 1
je 0x42a6f6
cmp dword [edi + 0x14], 8
jb 0x42a6de
mov ecx, dword [edi]
jmp 0x42a6e0
mov ecx, edi
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x42a788
mov eax, dword [ebp - 0x3c]
test al, 0x10
jne 0x42a71f
cmp dword [edi + 0x14], 8
jb 0x42a702
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
pop edi
sbb eax, eax
neg eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], bl
je 0x42a74c
push 0x4c13a8
lea ecx, [ebp - 0x1c]
call fcn.0040cb10
mov ebx, 1
lea eax, [ebp - 0x1c]
push ebx
push eax
push edi
call fcn.0042a4a0
add esp, 0xc
mov byte [ebp - 0x35], 0
test al, al
je 0x42a750
mov byte [ebp - 0x35], 1
test bl, 1
je 0x42a75d
lea ecx, [ebp - 0x1c]
call fcn.00401f50
cmp byte [ebp - 0x35], 0
je 0x42a788
cmp dword [edi + 0x14], 8
jb 0x42a76b
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
pop edi
sbb eax, eax
neg eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x42a7ae
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a7c2
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret