joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ed5b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.0045fa13
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.0045eebb
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x45eea5
test ebx, ebx
jl 0x45ee49
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd151bf
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45ee6a
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x45ee5c
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.0046082b
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.0046082b
add esp, 8
mov ebx, 0x80070057
jmp 0x45ee49
Function at 0x47595b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.00476613
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.00475abb
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x475aa5
test ebx, ebx
jl 0x475a49
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd2bdbf
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x475a6a
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x475a5c
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.0047742b
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.0047742b
add esp, 8
mov ebx, 0x80070057
jmp 0x475a49
Function at 0x48caab
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.0048d763
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.0048cc0b
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x48cbf5
test ebx, ebx
jl 0x48cb99
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd42f0f
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x48cbba
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x48cbac
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.0048e57b
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.0048e57b
add esp, 8
mov ebx, 0x80070057
jmp 0x48cb99
Function at 0x4a376b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.004a4423
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.004a38cb
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a38b5
test ebx, ebx
jl 0x4a3859
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd59bcf
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a387a
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4a386c
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.004a523b
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.004a523b
add esp, 8
mov ebx, 0x80070057
jmp 0x4a3859
Function at 0x4b8171
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c03b0
cmp edx, dword [eax]
je 0x4b8193
add eax, 8
inc ecx
cmp eax, 0x4c0440
jl 0x4b8184
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c03b0]
jne 0x4b82c1
mov eax, dword [0x4c4d64]
cmp eax, 1
je 0x4b829b
test eax, eax
jne 0x4b81c4
cmp dword [0x4c02d8], 1
je 0x4b829b
cmp edx, 0xfc
je 0x4b82c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b81fb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004b8b50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004b8fe0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b823e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004b8fe0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bd824
push edi
call fcn.004baeb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004b8b50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b8b60
lea eax, [ebp - 0xa0]
push 0x4bd804
push eax
call fcn.004b8b60
push dword [esi + 0x4c03b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b8b60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bae24
add esp, 0x2c
pop edi
jmp 0x4b82c1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c03b4]
push 0
push eax
push dword [esi]
call fcn.004b8fe0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x10004310
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100043a2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push str.Warcraft_III
call dword [sym.imp.USER32.dll_FindWindowA]
push str.Game.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.Game.dll
mov dword [0x100345f4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [0x100345f4]
push 0
push 0
push 0
mov dword [0x100345f0], eax
lea ecx, [edx + 0xab4f80]
add eax, 0x3b8660
mov dword [0x100345e4], ecx
push 0x10003c50
mov dword [0x100345ec], eax
lea ecx, [edx + 0x2f8e40]
push 0
lea eax, [edx + 0x3b4e60]
mov dword [0x100345e0], ecx
push 0
mov dword [0x100345e8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x10001080
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 0x24], 0x64
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x73
mov byte [ebp - 0x21], 0x6b
mov byte [ebp - 0x20], 0x74
mov byte [ebp - 0x1f], 0x6f
mov byte [ebp - 0x1e], 0x70
mov byte [ebp - 0x1d], 0x2e
mov byte [ebp - 0x1c], 0x69
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x69
mov byte [ebp - 0x19], 0
mov byte [0x10003016], 0
mov byte [0x10003023], 0
mov byte [0x10003033], 0
mov byte [0x1000303f], 0
mov byte [0x1000304d], 0
mov byte [0x1000305a], 0
mov byte [0x10003065], 0
mov byte [0x10003072], 0
mov byte [0x1000307e], 0
mov byte [0x1000308c], 0
mov byte [0x1000309d], 0
mov byte [0x100030a6], 0
mov byte [0x100030b1], 0
mov byte [0x100030ba], 0
mov byte [0x100030c6], 0
mov byte [0x100030cf], 0
mov byte [0x100030db], 0
mov byte [0x100030e4], 0
push 0x1000309e
push 0x10002060
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x1000307f
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
push 1
push 0
push 0
push section..data
push 0
push 0
call dword [ebp - 0x18]
push 0x10003034
push 0x10002094
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
push 0x10003066
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 8]
mov dword [0x100030ec], eax
push 0x40
push 0x1000
push 0x1000
push 0
call dword [ebp - 0x10]
mov dword [0x100030e8], eax
push 0
push 0x100030f4
push 0x1000
mov ecx, dword [0x100030e8]
push ecx
mov edx, dword [0x100030ec]
push edx
call dword [ebp - 0xc]
mov eax, dword [0x100030e8]
mov cl, byte [eax]
mov byte [0x100030f0], cl
mov dword [ebp - 4], 0x42
movzx edx, byte [0x100030f0]
xor edx, 0x4e
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], 0
jmp 0x10001232
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [0x100030f4]
jae 0x1000125c
mov edx, dword [0x100030e8]
add edx, dword [ebp - 0x28]
movzx eax, byte [edx]
xor eax, dword [ebp - 0x14]
add eax, dword [ebp - 4]
mov ecx, dword [0x100030e8]
add ecx, dword [ebp - 0x28]
mov byte [ecx], al
jmp 0x10001229
call dword [0x100030e8]
cmp dword [ebp + 0x14], 0x7000
jne 0x10001270
call fcn.10001000
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401d40
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 8], 0
mov eax, dword [edi + 0x10]
test eax, eax
je 0x401d84
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401d6c
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov ecx, dword [edi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x14
call fcn.004124ad
mov esi, eax
add esp, 4
test esi, esi
jne 0x401da2
pop edi
pop esi
pop ecx
ret
mov eax, esi
xor edx, edx
mov ecx, dword [esp + 0x10]
push edi
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov eax, dword [esp + 0x18]
mov dword [esi], ecx
mov edx, dword [edi + 0x18]
lea ecx, [esi + 0xc]
mov dword [esi + 4], edx
push ecx
mov dword [esi + 8], eax
call fcn.0041223d
lea edx, [esp + 0x10]
push edx
push 0
push esi
push 0x401e50
push 0
push 0
call fcn.004125e7
add esp, 0x20
test eax, eax
jne 0x401dfd
push esi
call fcn.004123c4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ecx
ret
mov dword [edi + 0x10], eax
mov eax, dword [esp + 8]
mov dword [edi + 0x14], eax
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x402d40
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, dword [esp + 0x224]
push ebx
call fcn.004121f6
add esp, 4
cmp eax, 0xfe
jbe 0x402d6b
mov eax, 0xa0008002
pop ebx
add esp, 0x20c
ret
push esi
push edi
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.0041223d
lea ecx, [esp + 0x18]
push 0x43d0d4
push ecx
call fcn.00412213
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.004035c0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x402e61
mov edi, dword [esp + 0x228]
mov ecx, dword [esp + 0xc]
push edi
push ecx
call fcn.00403730
mov esi, eax
add esp, 8
test esi, esi
jne 0x402ded
mov edx, dword [esp + 0xc]
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
push edx
mov edx, dword [esp + 0x228]
push eax
mov eax, dword [esp + 0x228]
push ecx
mov ecx, dword [esp + 0x228]
push edx
push eax
push ecx
call fcn.004037d0
add esp, 0x18
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [esp + 0x10]
push 0
push eax
push 5
push 2
call edi
test esi, esi
jne 0x402e49
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.004033f0
add esp, 8
test eax, eax
je 0x402e44
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push ebx
push 5
push 0x800
call edi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
mov esi, 0xa0018002
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push 0
push eax
push 5
push 4
call edi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
Function at 0x402e70
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x20c
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
call fcn.004121f6
add esp, 4
cmp eax, 0xfe
jbe 0x402e9b
mov eax, 0xb0008002
pop ebp
add esp, 0x20c
ret
push ebx
push esi
push edi
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0041223d
lea ecx, [esp + 0x1c]
push 0x43d0d4
push ecx
call fcn.00412213
lea edx, [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.004035c0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x402fa6
mov edi, dword [esp + 0x22c]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x20]
push ecx
mov ecx, dword [esp + 0x238]
push edx
mov edx, dword [esp + 0x238]
push eax
mov eax, dword [esp + 0x234]
push ecx
mov ecx, dword [esp + 0x234]
push edx
mov edx, dword [esp + 0x234]
push eax
push ecx
push edx
call fcn.00403a60
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x402f32
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x30]
push eax
lea ecx, [edi + 0x28]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea ecx, [esp + 0x14]
push 0
push ecx
push 5
push 2
call ebx
test esi, esi
jne 0x402f8e
lea edx, [esp + 0x14]
push ebp
push edx
call fcn.004033f0
add esp, 8
test eax, eax
je 0x402f89
mov eax, dword [edi + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push ebp
push 5
push 0x800
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x20c
ret
mov esi, 0xb0018002
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x14]
push 0
push edx
push 5
push 4
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x20c
ret

Function at 0x4030c0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [esp + 0x218]
mov ecx, dword [esp + 0x21c]
push esi
lea edx, [esp + 0x10]
push edi
push edx
push 0x104
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x403108
pop edi
mov eax, 0x20008002
pop esi
add esp, 0x214
ret
mov esi, dword [esp + 0x22c]
lea eax, [esp + 0x14]
push esi
push 0
push 0x43d160
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x403134
pop edi
mov eax, 0x20018002
pop esi
add esp, 0x214
ret
mov edi, dword [esp + 0x228]
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x10]
push ecx
push edx
push 0x403330
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x403176
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x4d3
pop edi
neg eax
sbb eax, eax
pop esi
and eax, 0x20028001
inc eax
add esp, 0x214
ret
push 0
push esi
push 5
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push edi
call fcn.004033a0
add esp, 4
test eax, eax
jne 0x4031a7
push esi
call fcn.004033a0
add esp, 4
mov eax, 0x20038002
pop edi
pop esi
add esp, 0x214
ret
pop edi
xor eax, eax
pop esi
add esp, 0x214
ret
Function at 0x4031c0
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x624
mov eax, dword [esp + 0x628]
mov ecx, dword [esp + 0x62c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x640]
push edi
mov dword [esp + 0x14], eax
push 0
lea edx, [esp + 0x438]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], 0
call fcn.0041274a
lea ecx, [esp + 0x30]
lea edx, [esp + 0x240]
push ecx
push edx
call fcn.0041223d
lea eax, [esp + 0x450]
lea ecx, [esp + 0x248]
push eax
push ecx
call fcn.00412213
add esp, 0x24
lea edx, [esp + 0x24]
lea eax, [esp + 0x22c]
push edx
push 0
push 0x43d160
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, dword [esp + 0x640]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40326f
pop edi
pop esi
pop ebp
mov eax, 0xf0008002
pop ebx
add esp, 0x624
ret
mov ecx, ebp
or ecx, 2
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x403290
pop edi
pop esi
pop ebp
mov eax, 0xf0018002
pop ebx
add esp, 0x624
ret
mov edi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
push ebx
push 5
push 0x800
call edi
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x30]
push 0x403330
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x4032d3
pop edi
pop esi
pop ebp
mov eax, 0xf0028002
pop ebx
add esp, 0x624
ret
lea edx, [esp + 0x24]
push 0
push edx
push 5
push 2
call edi
lea eax, [esp + 0x24]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 0x24]
push esi
push ecx
push 5
push 1
call edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push esi
push 5
push 0x800
call edi
push ebx
call fcn.004033a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x624
ret

Function at 0x4033a0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
push esi
push 5
push 0x800
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
je 0x4033db
push 0
push esi
push 5
push 4
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret