joyce8/EMBER2024-capa huggingface dataset:
Function at 0x521410
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push edi
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov ebx, dword [edi + 0xc]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], ebx
jl 0x5215c6
mov ebp, dword [esp + 0x24]
jg 0x52143b
cmp ebp, eax
jb 0x5215c6
cmp ebp, ebp
jne 0x5215c6
cmp ecx, eax
jne 0x5215c6
push esi
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x58], eax
je 0x521508
mov byte [esp + 0x13], 1
mov eax, dword [edi + 0x58]
mov edx, dword [esp + 0x24]
push eax
mov ecx, ebp
sub ecx, esi
push ecx
lea eax, [esi + edx]
push 1
push eax
call fcn.00577643
mov ecx, dword [edi + 0x58]
push ecx
mov ebx, eax
call fcn.0057733b
add esp, 0x14
test eax, eax
setne al
cmp byte [esp + 0x13], 0
mov byte [esp + 0x12], al
je 0x5214c3
test al, al
je 0x5214c3
test ebx, ebx
jne 0x5214c3
mov edx, dword [edi + 0x58]
push ebx
push edx
call fcn.0057a3f1
add esp, 4
push edx
push eax
mov eax, dword [edi + 0x58]
push eax
call fcn.0057beef
mov al, byte [esp + 0x22]
add esp, 0x10
mov byte [esp + 0x13], bl
jmp 0x5214ca
add esi, ebx
adc dword [esp + 0x1c], 0
test al, al
jne 0x5215b6
test ebx, ebx
jne 0x5214ef
call fcn.00578a51
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x521460
jmp 0x521563
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x2c]
jg 0x521567
jl 0x521460
cmp esi, ebp
jae 0x521567
jmp 0x521460
cmp dword [edi + 0x70], 0xffffffff
je 0x521577
mov edi, edi
mov ecx, dword [esp + 0x24]
mov eax, ebp
sub eax, esi
push eax
mov eax, dword [edi + 0x70]
lea edx, [esi + ecx]
push edx
push eax
call fcn.0057bd56
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x52153c
call fcn.00578a51
cmp dword [eax], 4
je 0x521510
jmp 0x52155b
test ebx, ebx
jle 0x52155b
mov eax, ebx
cdq
add esi, eax
mov eax, dword [esp + 0x1c]
adc eax, edx
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jl 0x521510
jg 0x52155b
cmp esi, ebp
jb 0x521510
cmp ebx, 0xffffffff
setne byte [esp + 0x12]
mov al, byte [esp + 0x12]
test al, al
jne 0x5215b6
mov ecx, esi
or ecx, dword [esp + 0x1c]
jne 0x5215b6
mov ebx, dword [esp + 0x14]
or esi, 0xffffffff
mov dword [esp + 0x1c], esi
call fcn.00578a51
mov edx, dword [eax]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004b0f30
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.00524510
mov ecx, dword [esp + 0x24]
or edx, esi
lock xadd dword [ecx], edx
jne 0x5215b6
mov eax, dword [esp + 0x24]
push eax
call fcn.004b7ca0
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
lea ecx, [esp + 0x20]
push 0x16
push ecx
call fcn.004b0f30
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.00524510
mov edx, dword [esp + 0x20]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x5215f9
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004b7ca0
add esp, 4
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
add esp, 0x10
ret 0xc
Function at 0x521740
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0xc], esi
test ecx, ecx
jl 0x52187b
mov edi, dword [esp + 0x18]
jg 0x521767
test edi, edi
jb 0x52187b
xor eax, eax
cmp edi, edi
jne 0x52187b
cmp ecx, eax
jne 0x52187b
push ebx
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 0x58], eax
je 0x5217ca
mov eax, dword [ebp + 0x58]
mov edx, dword [esp + 0x18]
push eax
mov ecx, edi
sub ecx, esi
push ecx
lea eax, [esi + edx]
push 1
push eax
call fcn.005771c6
add esp, 0x10
add esi, eax
adc ebx, 0
test eax, eax
jne 0x5217bc
call fcn.00578a51
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x521783
jmp 0x52180f
cmp ebx, dword [esp + 0x20]
jg 0x52180f
jl 0x521783
cmp esi, edi
jae 0x52180f
jmp 0x521783
cmp dword [ebp + 0x70], 0xffffffff
je 0x52180f
mov eax, dword [esp + 0x18]
mov edx, edi
sub edx, esi
push edx
mov edx, dword [ebp + 0x70]
lea ecx, [esi + eax]
push ecx
push edx
call fcn.0057c7b9
add esp, 0xc
cmp eax, 0xffffffff
jne 0x5217fa
call fcn.00578a51
cmp dword [eax], 4
je 0x5217d0
jmp 0x52180f
test eax, eax
jle 0x52180f
cdq
add esi, eax
adc ebx, edx
cmp ebx, dword [esp + 0x20]
jl 0x5217d0
jg 0x52180f
cmp esi, edi
jb 0x5217d0
or edi, dword [esp + 0x20]
je 0x52186f
mov eax, esi
or eax, ebx
jne 0x52186f
or esi, 0xffffffff
or ebx, esi
call fcn.00578a51
mov edi, eax
call fcn.00578a51
mov ecx, dword [edi]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebp, eax
call fcn.004b0f30
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
xor eax, eax
cmp dword [ebp], 0x1c
sete al
lea eax, [eax + eax + 2]
push eax
call fcn.00524510
mov ecx, dword [esp + 0x18]
or edx, esi
lock xadd dword [ecx], edx
jne 0x52186f
mov eax, dword [esp + 0x18]
push eax
call fcn.004b7ca0
add esp, 4
mov edx, ebx
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 0xc
lea ecx, [esp + 0x14]
push 0x16
push ecx
call fcn.004b0f30
add esp, 8
push eax
push 2
mov ecx, esi
call fcn.00524510
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x5218ae
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004b7ca0
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebp
pop ecx
ret 0xc
Function at 0x522500
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esp + 0xf], 0
mov dword [esp + 0x14], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea edx, [esp + 0x1c]
push edx
push 0x66429c
push 1
push 0
push 0x6642ac
xor bl, bl
call edi
cmp eax, 0x800401f0
jne 0x522563
push 0
mov bl, 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x1c]
push eax
push 0x66429c
push 1
push 0
push 0x6642ac
call edi
test eax, eax
jl 0x52269a
push 1
push ecx
mov eax, esp
mov ecx, 0x5c
push ecx
mov word [eax], cx
mov eax, esp
mov edx, 0x2f
mov word [eax], dx
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
push 3
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004bb500
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx]
mov ecx, eax
call fcn.004b9a40
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edi + 0x50]
push edx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5225ce
mov eax, dword [esp + 0x10]
push eax
call fcn.004b7ca0
add esp, 4
test edi, edi
jl 0x522687
push 1
push ecx
mov eax, esp
mov ecx, 0x5c
push ecx
mov word [eax], cx
mov eax, esp
mov edx, 0x2f
mov word [eax], dx
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
push 4
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004bb500
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx]
mov ecx, eax
call fcn.004b9a40
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edi + 0x24]
push edx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x522639
mov eax, dword [esp + 0x10]
push eax
call fcn.004b7ca0
add esp, 4
test edi, edi
jl 0x522687
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x6642bc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x522687
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx]
push 1
lea ecx, [esp + 0x18]
call fcn.004b9a40
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edi + 0x18]
push edx
call eax
test eax, eax
jl 0x52267b
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp byte [esp + 0xf], 0
jne 0x5226cd
lea eax, [esp + 0x10]
push 0xffffffffffffffff
push eax
call fcn.004b0f30
add esp, 8
push eax
push 0xa
mov ecx, esi
call fcn.00524510
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5226cd
mov eax, dword [esp + 0x10]
push eax
call fcn.004b7ca0
add esp, 4
test bl, bl
je 0x5226d7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5226f1
mov eax, dword [esp + 0x14]
push eax
call fcn.004b7ca0
add esp, 4
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x522840
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0xc]
mov dword [esp + 0x10], esi
test eax, eax
jne 0x52291f
or edx, 0xffffffff
cmp dword [edi + 0x70], edx
jne 0x52291b
cmp dword [edi + 0x5c], edx
jne 0x522874
pop edi
mov eax, edx
pop esi
add esp, 0xc
ret 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0x10], ebp
xor ebx, ebx
lea eax, [esp + 0x10]
cmp ebp, 0x2000000
jb 0x522893
mov eax, 0x646218
mov eax, dword [eax]
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 0x5c]
push eax
lea eax, [esi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5228e2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5228d4
add esi, eax
adc ebx, 0
sub ebp, eax
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
jg 0x5228d4
jl 0x522882
cmp esi, dword [esp + 0x24]
jb 0x522882
pop ebp
mov edx, ebx
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret 0xc
mov edx, esi
or edx, ebx
jne 0x5228d4
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push eax
call fcn.004b0f30
mov ecx, dword [esp + 0x20]
add esp, 8
push eax
push 1
call fcn.00524510
lea ecx, [esp + 0x20]
call fcn.004010b0
pop ebp
pop ebx
or eax, 0xffffffff
pop edi
or edx, eax
pop esi
add esp, 0xc
ret 0xc
test eax, eax
je 0x52297e
call fcn.005224a0
test al, al
je 0x52297e
mov ecx, dword [edi + 0x58]
push ecx
call fcn.0057733b
add esp, 4
test eax, eax
je 0x52297e
call fcn.00578a51
mov edx, dword [eax]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004b0f30
add esp, 8
push eax
push 1
mov ecx, esi
call fcn.00524510
mov ecx, dword [esp + 0x18]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x522971
mov eax, dword [esp + 0x18]
push eax
call fcn.004b7ca0
add esp, 4
or eax, 0xffffffff
pop edi
or edx, eax
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00521410
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x5229a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x58], edi
jne 0x522a7e
or eax, 0xffffffff
cmp dword [ebp + 0x70], eax
jne 0x522a7e
cmp dword [ebp + 0x5c], eax
jne 0x5229d4
pop edi
mov edx, eax
pop ebp
add esp, 0x14
ret 0xc
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov dword [esp + 0x20], edi
xor esi, esi
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
cmp ebx, 0x2000000
jb 0x5229f5
mov eax, 0x646218
mov eax, dword [eax]
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x5c]
push eax
lea eax, [esi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x522a45
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x522a37
xor eax, eax
add esi, ecx
adc edi, eax
sub ebx, ecx
sbb dword [esp + 0x20], eax
cmp edi, dword [esp + 0x30]
jg 0x522a37
jl 0x5229e0
cmp esi, dword [esp + 0x2c]
jb 0x5229e0
mov eax, esi
pop esi
pop ebx
mov edx, edi
pop edi
pop ebp
add esp, 0x14
ret 0xc
mov edx, esi
or edx, edi
jne 0x522a37
lea eax, [esp + 0x28]
push 0xffffffffffffffff
push eax
call fcn.004b0f30
mov ecx, dword [esp + 0x20]
add esp, 8
push eax
push 2
call fcn.00524510
lea ecx, [esp + 0x28]
call fcn.004010b0
pop esi
pop ebx
or eax, 0xffffffff
pop edi
or edx, eax
pop ebp
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.00521740
pop edi
pop ebp
add esp, 0x14
ret 0xc
Function at 0x523200
Capabilities:
Clear file content

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x5c]
push edi
cmp ecx, 0xffffffff
jne 0x5232e7
cmp dword [eax + 0x70], ecx
jne 0x5232e7
cmp dword [eax + 0x58], 0
jne 0x5232e7
lea edi, [eax + 0x10]
mov ecx, edi
call fcn.00525380
test al, al
jne 0x52338f
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00524e60
push eax
lea ecx, [esp + 0x18]
call fcn.00504cf0
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x52326d
mov eax, dword [esp + 0x10]
push eax
call fcn.004b7ca0
add esp, 4
push ecx
mov eax, esp
lea ecx, [esp + 0x18]
mov dword [eax], 3
call fcn.005043c0
test al, al
je 0x5232d2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.005050c0
mov bl, al
test bl, bl
jne 0x5232bd
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.004fda10
push eax
push 0xc
mov ecx, esi
call fcn.00524510
lea ecx, [esp + 0x20]
call fcn.004010b0
lea ecx, [esp + 0x14]
call fcn.005050a0
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
lea ecx, [esp + 0x14]
call fcn.005050a0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edi, ecx
cmp edi, 0xffffffff
jne 0x523319
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x523306
push ecx
call fcn.0057cd8a
push eax
call fcn.0057c99c
add esp, 8
jmp 0x523312
mov ecx, dword [eax + 0x70]
push ecx
call fcn.0057c99c
add esp, 4
mov edi, eax
cmp edi, 0xffffffff
je 0x52338f
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x20]
mov ebp, eax
mov eax, dword [esp + 0x24]
mov ebx, edx
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
call edx
test al, al
je 0x523384
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x523384
cmp ebx, dword [esp + 0x24]
jg 0x523364
jl 0x52335e
cmp ebp, dword [esp + 0x20]
jae 0x523364
lea eax, [esp + 0x14]
jmp 0x523368
lea eax, [esp + 0x20]
mov ecx, dword [eax + 4]
mov edx, dword [esi]
mov eax, dword [eax]
mov edx, dword [edx + 0x18]
push ecx
push eax
mov ecx, esi
call edx
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push ebx
push ebp
mov ecx, esi
call edx
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
Function at 0x5258b0
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push 0
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00522700
add esp, 8
mov ecx, eax
call fcn.004b9a40
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [esp + 4]
test eax, eax
setne bl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x5258ef
mov ecx, dword [esp + 4]
push ecx
call fcn.004b7ca0
add esp, 4
mov al, bl
pop ebx
pop ecx
ret

Function at 0x525900
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x25c
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x258], eax
mov eax, dword [esp + 0x260]
mov eax, dword [eax]
push ebx
mov dword [esp + 4], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 4]
cmp dword [eax + 8], 2
jne 0x525953
mov edx, dword [eax + 0xc]
cmp word [edx + 2], 0x3a
jne 0x525953
push ecx
mov eax, esp
mov ecx, 0x5c
mov word [eax], cx
lea ecx, [esp + 8]
call fcn.004b90b0
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.00522700
add esp, 8
mov ecx, eax
call fcn.004b9a40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 8]
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x52598f
mov eax, dword [esp + 8]
push eax
call fcn.004b7ca0
add esp, 4
cmp ebx, 0xffffffff
jne 0x5259ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x5259a4
cmp eax, 0x20
jne 0x5259ca
lea ecx, [esp + 0xc]
push ecx
push ecx
mov edx, esp
lea eax, [esp + 0xc]
push eax
push edx
call fcn.00522700
add esp, 8
call fcn.005257e0
add esp, 8
test al, al
je 0x5259ca
mov ebx, dword [esp + 0xc]
test esi, esi
je 0x5259d6
cmp ebx, 0xffffffff
setne cl
mov byte [esi], cl
mov edx, dword [esp + 4]
or eax, 0xffffffff
cmp ebx, eax
jne 0x525a0c
lock xadd dword [edx], eax
jne 0x5259f4
mov ecx, dword [esp + 4]
push ecx
call fcn.004b7ca0
add esp, 4
xor al, al
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0057340c
add esp, 0x25c
ret
shr ebx, 4
and bl, 1
lock xadd dword [edx], eax
jne 0x525a25
mov ecx, dword [esp + 4]
push ecx
call fcn.004b7ca0
add esp, 4
mov ecx, dword [esp + 0x25c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0057340c
add esp, 0x25c
ret
Function at 0x525f90
Capabilities:
Copy file

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebx
push 1
lea eax, [esp + 0xc]
push eax
call fcn.005253a0
mov ecx, eax
call fcn.004b9a40
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.005253a0
mov ecx, eax
call fcn.004b9a40
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 4]
test eax, eax
setne bl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x525fe7
mov ecx, dword [esp + 4]
push ecx
call fcn.004b7ca0
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x526001
mov ecx, dword [esp + 8]
push ecx
call fcn.004b7ca0
add esp, 4
test bl, bl
jne 0x526019
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
mov ecx, 2
mov dword [edx], eax
mov dword [edx + 4], ecx
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x526020
Capabilities:
Move file

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebx
lea eax, [esp + 8]
push eax
call fcn.005253a0
mov ecx, eax
call fcn.004b9a40
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.005253a0
mov ecx, eax
call fcn.004b9a40
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [esp + 4]
test eax, eax
setne bl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x526075
mov ecx, dword [esp + 4]
push ecx
call fcn.004b7ca0
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x52608f
mov ecx, dword [esp + 8]
push ecx
call fcn.004b7ca0
add esp, 4
test bl, bl
jne 0x5260a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
mov ecx, 2
mov dword [edx], eax
mov dword [edx + 4], ecx
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x5260b0
Capabilities:
Delete file

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
lea eax, [esp + 4]
push eax
call fcn.005253a0
mov ecx, eax
call fcn.004b9a40
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 4]
test eax, eax
setne bl
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5260ed
mov eax, dword [esp + 4]
push eax
call fcn.004b7ca0
add esp, 4
test bl, bl
jne 0x526105
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
mov ecx, 2
mov dword [edx], eax
mov dword [edx + 4], ecx
mov al, bl
pop ebx
pop ecx
ret
Function at 0x526550
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
push esi
mov dword [esp + 0x10], 0x6bb0d4
mov eax, 0x6bb0d4
mov ecx, 1
lock xadd dword [eax], ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [esp + 0x20]
push edx
push 0x200
call ebp
mov esi, eax
test esi, esi
je 0x526646
cmp esi, 0x200
jbe 0x52660f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.005723d9
add esp, 4
mov edi, eax
push edi
push 0x200
call ebp
test eax, eax
je 0x526603
push esi
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004babe0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.004b7cb0
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x526603
mov eax, dword [esp + 0x10]
push eax
call fcn.004b7ca0
add esp, 4
push edi
call fcn.0057426b
add esp, 4
pop edi
jmp 0x526646
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004babe0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004b7cb0
mov eax, dword [esp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x526646
mov edx, dword [esp + 0xc]
push edx
call fcn.004b7ca0
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 2
jl 0x52669b
cmp eax, 1
jle 0x526660
mov eax, dword [ecx + 0xc]
movzx eax, word [eax + 2]
jmp 0x526662
xor eax, eax
cmp ax, 0x3a
jne 0x52669b
mov ecx, dword [ecx + 0xc]
mov dx, word [ecx]
lea ecx, [esp + 0xc]
lea eax, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1a]
mov word [esp + 0x1a], dx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call fcn.004b73c0
push eax
lea ecx, [esp + 0x1c]
call fcn.004bc4e0
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.00524c60
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5266cb
mov eax, dword [esp + 0x10]
push eax
call fcn.004b7ca0
add esp, 4
mov ecx, dword [esp + 0x420]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0057340c
add esp, 0x418
ret
Function at 0x528180
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, eax
mov ecx, esi
mov byte [esp + 9], 0
xor ebx, ebx
call fcn.00524d50
test al, al
je 0x528203
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00524e60
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov ax, word [edx]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xe]
mov word [esp + 0xe], ax
call fcn.004b73c0
movzx ecx, word [eax]
mov edx, dword [esp + 0x10]
sub ecx, 0x41
mov esi, 1
shl esi, cl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x5281ef
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004b7ca0
add esp, 4
test ebx, esi
je 0x5282f9
mov ebx, 0x14
mov al, 1
jmp 0x5282be
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.005253a0
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], str._UNC
call fcn.004b9520
test al, al
je 0x52829c
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xc]
mov ax, word [edx]
push 1
mov word [esp + 0x14], ax
mov ecx, dword [esp + 0x14]
push 7
push ecx
lea ecx, [esp + 0x18]
call fcn.004b9340
test eax, eax
jle 0x528281
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0xc]
mov dx, word [ecx]
push 1
inc eax
push eax
mov word [esp + 0x18], dx
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.004b9340
test eax, eax
jle 0x528281
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 8]
dec edx
cmp eax, edx
jne 0x52829c
lea eax, [esp + 0xc]
push eax
call fcn.00527fa0
add esp, 4
test al, al
je 0x52829c
mov ebx, 0x10
mov byte [esp + 9], 1
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5282b6
mov eax, dword [esp + 0xc]
push eax
call fcn.004b7ca0
add esp, 4
mov al, byte [esp + 9]
test al, al
je 0x5282fd
mov dword [edi + 0x10], ebx
test bl, 2
je 0x5282cd
or dword [edi + 4], 0x100000
and bl, 0x10
movzx ecx, bl
neg ecx
sbb ecx, ecx
and ecx, 0x20000
add ecx, 0x20000
or dword [edi + 4], ecx
or dword [edi + 4], 0x400000
or dword [edi], 0x560000
pop esi
pop ebx
add esp, 0xc
ret
mov al, byte [esp + 9]
pop esi
pop ebx
add esp, 0xc
ret