joyce8/EMBER2024-capa huggingface dataset:
Function at 0x672545d0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x674e49c4]
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x672545ee
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x674e49c4], eax
jmp 0x672545f7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [0x674e49c8]
lea eax, [edi - 8]
mov edx, dword [eax]
mov ecx, eax
sub ecx, dword [eax + 4]
sub esi, edx
mov dword [0x674e49c8], esi
cmp dword [ecx], 0
jne 0x67254620
add dword [ecx + 0x10], edx
mov eax, dword [ecx + 0x10]
mov dword [eax + ecx + 4], eax
jmp 0x67254646
mov dword [eax + 0x10], edx
mov ecx, eax
mov edx, dword [0x674e4968]
mov dword [eax], 0
mov dword [edi], edx
mov dword [eax + 0xc], 0
test edx, edx
je 0x67254641
mov dword [edx + 0xc], eax
mov dword [0x674e4968], eax
mov edi, dword [ecx + 0x10]
cmp dword [edi + ecx], 0
lea edx, [edi + ecx]
jne 0x67254687
mov eax, dword [edx + 0x10]
add eax, edi
push ebx
mov dword [ecx + 0x10], eax
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x67254668
mov eax, dword [edx + 0xc]
mov dword [ebx + 0xc], eax
mov edi, dword [edx + 0xc]
mov eax, dword [edx + 8]
pop ebx
test edi, edi
je 0x67254678
mov dword [edi + 8], eax
jmp 0x6725467d
mov dword [0x674e4968], eax
mov eax, dword [ecx + 0x10]
mov dword [eax + ecx + 4], eax
lea edx, [eax + ecx]
cmp dword [ecx + 4], 0
jne 0x672546d9
cmp dword [edx], 1
jne 0x672546d9
mov edx, dword [0x674e496c]
lea eax, [esi + esi*2]
sub edx, dword [ecx + 0x10]
shr eax, 1
cmp edx, eax
jbe 0x672546d9
mov dword [0x674e496c], edx
mov edx, dword [ecx + 8]
test edx, edx
je 0x672546b7
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
test edx, edx
je 0x672546c6
mov dword [edx + 8], eax
jmp 0x672546cb
mov dword [0x674e4968], eax
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [0x674e49c4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
ret
Function at 0x415952
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
jne 0x415968
xor bl, bl
jmp 0x415ab0
and dword [ebp - 0x10], 0
lea eax, [ebp - 8]
mov esi, dword [sym.imp.system.dll_public:_static_class_Ref_class_String____cdecl_String::create_void_]
lea edi, [ebp - 4]
push eax
mov dword [ebp - 4], 0xd2129ee7
call esi
mov bl, 0x6d
mov bh, 0x8a
pop ecx
mov byte [ebp - 0xc], bl
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x14]
push dword [ebp - 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 8]
call fcn.004052fc
lea ecx, [ebp - 0x14]
call fcn.00405291
add bh, bl
inc edi
mov bl, byte [edi]
xor bl, bh
mov byte [ebp - 0xc], bl
jne 0x41598a
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004052fc
lea ecx, [ebp - 8]
call fcn.00405291
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x16], 0x904c
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x1b], 0x23a2046d
mov byte [ebp - 0x17], 0xdc
mov byte [ebp - 0x1c], 0xc1
call esi
mov bl, 0x65
mov bh, 0xa4
pop ecx
mov byte [ebp - 0xc], bl
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x14]
push dword [ebp - 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 8]
call fcn.004052fc
lea ecx, [ebp - 0x14]
call fcn.00405291
add bh, bl
inc edi
mov bl, byte [edi]
xor bl, bh
mov byte [ebp - 0xc], bl
jne 0x4159f4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.004052fc
lea ecx, [ebp - 8]
call fcn.00405291
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x415a53
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 4]
push ecx
mov eax, esp
mov dword [eax], edi
test edi, edi
je 0x415a6f
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call dword [eax + 4]
lea ecx, [ebp - 0x14]
cmp dword [eax], 0
setne bl
call fcn.00405291
test edi, edi
je 0x415a9c
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, edi
mov eax, dword [ecx]
call dword [eax + 8]
test esi, esi
je 0x415ab0
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
add ecx, 4
add ecx, esi
mov edx, dword [ecx]
call dword [edx + 8]
lea ecx, [ebp + 8]
call fcn.00405291
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x416899
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
jne 0x4168af
xor bl, bl
jmp 0x4169c0
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x18], 0x3f93e77a
lea esi, [ebp - 0x18]
mov dword [ebp - 0x14], 0x6f05bd6
call dword [sym.imp.system.dll_public:_static_class_Ref_class_String____cdecl_String::create_void_]
mov bl, 0x6e
mov bh, 0x14
pop ecx
mov byte [ebp - 8], bl
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push dword [ebp - 8]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 4]
call fcn.004052fc
lea ecx, [ebp - 0x10]
call fcn.00405291
add bh, bl
inc esi
mov bl, byte [esi]
xor bl, bh
mov byte [ebp - 8], bl
jne 0x4168d6
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
call fcn.004052fc
lea ecx, [ebp - 4]
call fcn.00405291
and dword [ebp - 8], 0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0xf377de30
mov dword [ebp - 0x14], 0x41bd0b92
call fcn.00417939
push eax
lea ecx, [ebp - 8]
call fcn.004052fc
lea ecx, [ebp - 0x10]
call fcn.00405291
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
push ecx
mov eax, esp
mov dword [eax], edi
test edi, edi
je 0x416963
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 8]
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x41697f
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, ebx
call dword [eax + 4]
lea ecx, [ebp - 0x10]
cmp dword [eax], 0
setne bl
call fcn.00405291
test esi, esi
je 0x4169ac
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax + 8]
test edi, edi
je 0x4169c0
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
add ecx, 4
add ecx, edi
mov edx, dword [ecx]
call dword [edx + 8]
lea ecx, [ebp + 8]
call fcn.00405291
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x41d0d6
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d15e
xor ecx, ecx
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0x48], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x40], 0x137e2179
mov dword [eax + 0x44], 0x5be0cd19
xor eax, eax
pop ebp
ret
push 0xb1
mov ecx, str.md___NULL
call fcn.00422e3e
int3
Function at 0x41ed81
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41edd1
xor ecx, ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
pop ebp
ret
push 0xd0
mov ecx, str.md___NULL
call fcn.00422e3e
int3
Function at 0x41f441
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41f47c
xor ecx, ecx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
mov dword [eax + 0x1c], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
xor eax, eax
pop ebp
ret
push 0xa7
mov ecx, str.md___NULL
call fcn.00422e3e
int3

Function at 0x41fd36
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41fd6a
xor ecx, ecx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
xor eax, eax
pop ebp
ret
push 0xeb
mov ecx, str.md___NULL
call fcn.00422e3e
int3
Function at 0x4294f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.lib.stdc.dll_fopen]
mov ebx, edx
push 0x43887c
push str._dev_urandom
mov dword [ebp - 4], ecx
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42952f
push 0x43887c
push str._dev_random
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42955f
xor edi, edi
push edi
push 3
push edi
push esi
call dword [sym.imp.lib.stdc.dll_setvbuf]
add esp, 0x10
test eax, eax
jne 0x429555
push esi
push ebx
push 1
push dword [ebp - 4]
call dword [sym.imp.lib.stdc.dll_fread]
add esp, 0x10
mov edi, eax
push esi
call dword [sym.imp.lib.stdc.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x429564
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [sym.imp.lib.stdc.dll_clockTicks]
push edi
mov edi, edx
mov dword [ebp - 0x10], ecx
call esi
cmp eax, 0x64
jl 0x42961c
call esi
cmp eax, 0x2710
jg 0x42961c
and dword [ebp - 8], 0
mov eax, edi
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
test edi, edi
je 0x42961e
mov esi, dword [sym.imp.lib.stdc.dll_clock]
push ebx
dec edi
xor ebx, ebx
push 8
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 4]
pop eax
mov dword [ebp - 0xc], ebx
dec eax
mov dword [ebp - 0x18], eax
call esi
mov dword [ebp - 0x14], eax
call esi
mov ebx, dword [ebp - 0x14]
cmp ebx, eax
jne 0x4295d4
xor edi, 1
call esi
cmp ebx, eax
je 0x4295c8
mov dword [ebp - 4], edi
call esi
mov ebx, eax
call esi
cmp ebx, eax
jne 0x4295f0
mov edi, dword [ebp - 8]
xor edi, 1
call esi
cmp ebx, eax
je 0x4295e1
mov dword [ebp - 8], edi
mov edi, dword [ebp - 4]
cmp edi, dword [ebp - 8]
je 0x4295ba
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
add ebx, ebx
or ebx, edi
mov dword [ebp - 0xc], ebx
test eax, eax
jne 0x4295b6
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov byte [eax], bl
inc eax
mov dword [ebp - 0x10], eax
test edi, edi
jne 0x4295a7
mov eax, dword [ebp - 0x20]
pop ebx
jmp 0x42961e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
push ebx
sub esp, 0x44
mov eax, 0x401023
mov ecx, 0
mov bl, byte [eax]
add bl, 0x63
mov byte [eax], bl
add eax, 1
add ecx, 1
cmp ecx, 0xd137
jne 0x40100e
push ebp
popfd
popfd
ficomp word [ebp - 0x626262aa]
popfd
daa
mov ch, 0x1d
pushal
push ebp
and eax, 0x9e5e20b5
sbb eax, 0xb5255560
and byte [esi - 0x62], bl
and byte [ebp - 0x62], bl
push ds
xchg esi, eax
pushfd
les ebx, [ebp + 0x5588129d]
popfd
lodsd eax, dword [esi]
fstp qword [ebp + 0x60606058]
pushal
mov ch, 0x55
jb 0x4010c8
fstp qword [ebp + 0x209d5d20]
popal
loope 0x400ff6
insd dword es:[edi], dx
pushal
clc
pushal
test dword [edx - 0x79626263], esp
cmpsd dword [esi], dword es:[edi]
popfd
popfd
popfd
push esi
jne 0x40102f
ficomp word [ebp - 0x62adf77a]
popfd
add eax, 0x9dddad1b
test esp, ecx
popf
popfd
mul byte [eax + 0x56]
jne 0x401045
ficomp word [ebp - 0x62bd847a]
popfd
test dword [edx - 0x79626263], esp
cmpsd dword [esi], dword es:[edi]
popfd
popfd
popfd
push esi
movsd dword es:[edi], dword [esi]
invalid
lodsd eax, dword [esi]
fstp qword [ebp - 0x629a877b]
popfd
mul byte [eax + 0x56]
cmc
invalid
Function at 0x402cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov ecx, dword [ebp + 8]
call fcn.00402e00
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x402cf0
xor eax, eax
jmp 0x402d7b
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.0049ed70
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.0049ed70
add esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x208
lea eax, [ebp - 0x218]
push eax
call fcn.00402fa0
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.004a8e80
add esp, 4
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x402e00
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x402e19
jmp 0x402ecb
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.0049ed70
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x402e4a
jmp 0x402ecb
push 0x104
push 0
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.0049ed70
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
push 0
push str.anything
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [ebp - 4]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x52090c
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
mov edx, dword [ebp - 4]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
mov eax, dword [ebp - 4]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret

Function at 0x403290
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.0046ce90
cmp dword [ebp + 8], 0
jne 0x4032a7
xor eax, eax
jmp 0x403314
push 0x1e
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0049ed70
add esp, 0xc
mov dword [ebp - 4], 0x1000
mov dword [ebp - 0x20], 3
push 0x2000
push 0
lea ecx, [ebp - 0x2024]
push ecx
call fcn.0049ed70
add esp, 0xc
push 0x1000
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2024]
push eax
call fcn.004bbbd4
add esp, 0xc
lea ecx, [ebp - 0x2024]
mov dword [ebp - 0x1c], ecx
mov edx, 0x614
mov word [ebp - 0x14], dx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x403590
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
cmp dword [ebp + 8], 0
jne 0x4035a6
xor eax, eax
jmp 0x403791
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4035b7
xor eax, eax
jmp 0x403791
cmp dword [ebp + 0xc], 0
jne 0x4035c4
xor eax, eax
jmp 0x403791
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x4035d5
xor eax, eax
jmp 0x403791
mov ecx, dword [ebp + 8]
push ecx
call fcn.004bb901
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x104
jl 0x4035f4
xor eax, eax
jmp 0x403791
push 0x410
push 0
lea edx, [ebp - 0x88c]
push edx
call fcn.0049ed70
add esp, 0xc
push 0x52092c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x88c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x47c]
call fcn.004041e0
lea edx, [ebp - 0x88c]
push edx
lea ecx, [ebp - 0x47c]
call fcn.00404d40
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403771
lea ecx, [ebp - 0x47c]
call fcn.00405480
test eax, eax
je 0x403669
lea ecx, [ebp - 0x47c]
call fcn.00404ea0
mov dword [ebp - 0xc], eax
jmp 0x403640
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x47c]
call fcn.00405170
lea ecx, [ebp - 0x47c]
call fcn.00405460
test eax, eax
je 0x4036a1
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 4]
call fcn.00404490
push eax
call fcn.00403590
add esp, 8
jmp 0x403756
lea ecx, [ebp - 4]
call fcn.00404490
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.004bc0b2
add esp, 8
test eax, eax
jne 0x403756
lea ecx, [ebp - 4]
call fcn.00404490
push eax
call fcn.004037a0
add esp, 4
test eax, eax
jne 0x403756
lea ecx, [ebp - 8]
call fcn.00404180
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00403a70
add esp, 8
test eax, eax
je 0x403726
push 4
push 0
lea ecx, [ebp - 8]
call fcn.00404490
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0x520934
call fcn.00433750
add esp, 0xc
jmp 0x40374e
push 4
push 0
lea ecx, [ebp - 4]
call fcn.00404490
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
push str.delete_file:_s_by_pending:_s
call fcn.00433750
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.004042d0
lea ecx, [ebp - 0x47c]
call fcn.00404ea0
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 4]
call fcn.004042d0
jmp 0x403640
lea ecx, [ebp - 0x47c]
call fcn.00404be0
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x47c]
call fcn.00404300
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x4037a0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4037c2
mov eax, 1
jmp 0x403831
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4037d7
mov eax, 1
jmp 0x403831
push 0x80
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4037ff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4037ff
mov eax, 1
jmp 0x403831
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40382f
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x40382f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40382f
mov eax, 1
jmp 0x403831
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403840
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403878
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x5209ac
call fcn.00433750
add esp, 0xc
mov eax, 1
jmp 0x4038dd
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40388d
mov eax, 1
jmp 0x4038dd
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4038cd
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4038cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
push str.delete__s_failed__error_d
call fcn.00433750
add esp, 0xc
mov eax, 1
jmp 0x4038dd
push 4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4038f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
cmp dword [ebp + 8], 0
jne 0x403906
xor eax, eax
jmp 0x403a5f
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x403917
xor eax, eax
jmp 0x403a5f
mov edx, dword [ebp + 8]
push edx
call fcn.004bb901
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x104
jl 0x403936
xor eax, eax
jmp 0x403a5f
push 0x410
push 0
lea eax, [ebp - 0x888]
push eax
call fcn.0049ed70
add esp, 0xc
push 0x520a1c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x888]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x403994
mov ecx, dword [ebp - 4]
and ecx, 1
je 0x403994
mov edx, dword [ebp - 4]
and edx, 0xfffffffe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x478]
call fcn.004041e0
lea edx, [ebp - 0x888]
push edx
lea ecx, [ebp - 0x478]
call fcn.00404d40
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403a33
lea ecx, [ebp - 0x478]
call fcn.00405480
test eax, eax
je 0x4039d9
lea ecx, [ebp - 0x478]
call fcn.00404ea0
mov dword [ebp - 8], eax
jmp 0x4039b4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x478]
call fcn.00405170
lea ecx, [ebp - 0x478]
call fcn.00405460
test eax, eax
je 0x403a0a
lea ecx, [ebp - 0xc]
call fcn.00404490
push eax
call fcn.004038f0
add esp, 4
jmp 0x403a1b
lea ecx, [ebp - 0xc]
call fcn.00404490
push eax
call fcn.00403840
add esp, 4
lea ecx, [ebp - 0x478]
call fcn.00404ea0
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
call fcn.004042d0
jmp 0x4039b4
lea ecx, [ebp - 0x478]
call fcn.00404be0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403290
add esp, 4
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x478]
call fcn.00404300
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret