joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fba70
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
mov ebp, ecx
xor bl, bl
push esi
push edi
mov esi, dword [ebp + 4]
lea edi, [esi + 0x40]
test edi, edi
je 0x4fba9a
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x4fba98
mov ecx, edi
call fcn.004f8c80
mov bl, 1
cmp byte [esi + 0x48], 0
je 0x4fbac2
cmp byte [esi + 0x68], 0
jne 0x4fbaac
mov byte [esi + 0x69], 1
jmp 0x4fbac2
push 0
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push ebp
call fcn.004fafd0
add esp, 8
test bl, bl
je 0x4fbae1
xor edx, edx
mov eax, 1
lock cmpxchg dword [edi], edx
cmp eax, 1
je 0x4fbae1
mov ecx, edi
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004f8e20
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4fbcd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 0x20
jb 0x4fbd45
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0xc], edx
sub dword [esp + 0xc], ecx
mov dword [esp + 8], 0x10
lea esi, [ecx + 0x10]
sub dword [esp + 8], ecx
nop
movups xmm1, xmmword [eax + edx]
mov ecx, dword [esp + 0xc]
add eax, 0x20
movaps xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
movups xmm2, xmmword [ecx + esi]
mov ecx, dword [esp + 8]
pxor xmm0, xmm1
movups xmmword [esi - 0x10], xmm0
movaps xmm0, xmm2
psrlw xmm2, 8
psllw xmm0, 8
pxor xmm0, xmm2
movups xmmword [esi], xmm0
add esi, 0x20
add ecx, esi
cmp ecx, edi
jbe 0x4fbd00
mov ecx, dword [esp + 0x14]
lea esi, [eax + 0x10]
mov edx, dword [esp + 0x1c]
cmp esi, edi
ja 0x4fbd6f
movups xmm1, xmmword [eax + ecx]
movaps xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
pxor xmm0, xmm1
movups xmmword [eax + edx], xmm0
mov eax, esi
xor esi, esi
cmp eax, edi
jae 0x4fbda1
add edx, eax
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
nop
cmp esi, 0x10
jae 0x4fbda1
mov cx, word [edx + ecx]
add eax, 2
rol cx, 8
add esi, 2
mov word [edx], cx
add edx, 2
mov ecx, dword [esp + 0x14]
cmp eax, edi
jb 0x4fbd80
mov eax, edi
pop edi
pop esi
add esp, 8
ret

Function at 0x501df0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c55fb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x24
call fcn.00596a0c
mov esi, eax
mov dword [ebp - 0x14], esi
push 8
mov dword [ebp - 4], 0
call fcn.00596a0c
add esp, 8
mov dword [ebp - 0x18], eax
push 0
push dword [ebp + 8]
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004fc280
mov dword [esi], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
mov dword [esi + 8], esi
mov dword [esi + 0xc], 2
mov dword [esi + 0x10], 1
mov dword [ebx], esi
mov byte [esi + 0x20], 1
mov eax, dword [ebx]
push 0x22
mov dword [ebp - 4], 2
mov edi, dword [eax]
mov eax, dword [edi]
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x5cd3f0]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x507b30
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5e4b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x118
call fcn.00596a0c
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
mov dword [esi], 0
call fcn.0050a180
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x60], 0
push fcn.004019e0
push fcn.00402980
push 0xa
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 2
push eax
call fcn.00597005
push fcn.004019e0
push fcn.00402980
push 2
push 0xc
lea eax, [esi + 0xdc]
mov byte [ebp - 4], 3
push eax
call fcn.00597005
push fcn.004eec70
push fcn.004eebf0
push 4
push 4
lea eax, [esi + 0xf4]
mov byte [ebp - 4], 4
push eax
call fcn.00597005
and dword [esi + 0x104], 0xc0000000
mov eax, 1
or byte [esi + 0x108], 3
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0
mov dword [edi], esi
lock xadd dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50c130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6585
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ecx + 0x14]
mov dword [ebp - 0x24], esi
test eax, eax
jl 0x50c2f6
mov ebx, dword [ebp + 0xc]
jg 0x50c2f6
test ebx, ebx
jb 0x50c2f6
test eax, eax
jne 0x50c2f6
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
cmp dword [ecx + 0x78], eax
je 0x50c24b
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
nop dword [eax]
push dword [ecx + 0x78]
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push 1
push eax
call fcn.005a3095
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x78]
call fcn.005a2db3
mov edx, dword [ebp - 0x18]
add esp, 0x14
test eax, eax
setne al
mov byte [ebp - 0xd], al
test al, al
je 0x50c1d9
test edx, edx
je 0x50c219
xor ecx, ecx
mov eax, edx
add esi, eax
adc edi, ecx
cmp byte [ebp - 0xd], cl
jne 0x50c2de
test edx, edx
jne 0x50c201
call fcn.005a2cca
cmp dword [eax], 4
jne 0x50c2ac
mov ecx, dword [ebp - 0x14]
jmp 0x50c1a0
cmp edi, dword [ebp + 0x10]
jg 0x50c2ac
jl 0x50c214
cmp esi, ebx
jae 0x50c2ac
mov ecx, dword [ebp - 0x14]
jmp 0x50c1a0
mov ebx, dword [ebp - 0x14]
push dword [ebx + 0x78]
call fcn.0059f86a
push 0
push edx
push eax
push dword [ebx + 0x78]
call fcn.005a34b9
add esp, 0x14
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ecx + 0x90], 0xffffffff
je 0x50c2b2
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
nop word [eax + eax]
mov ecx, ebx
mov edx, 0x7fffffff
sub ecx, esi
sbb eax, edi
test eax, eax
ja 0x50c277
jb 0x50c275
cmp ecx, edx
jae 0x50c277
mov edx, ecx
mov eax, dword [ebp + 8]
push edx
add eax, esi
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x90]
call fcn.005a3c03
mov ecx, eax
add esp, 0xc
test ecx, ecx
jle 0x50c2a7
cdq
add esi, eax
mov eax, dword [ebp + 0x10]
adc edi, edx
cmp edi, eax
jl 0x50c260
jg 0x50c2a7
cmp esi, ebx
jb 0x50c260
cmp ecx, 0xffffffff
jne 0x50c2de
mov eax, esi
or eax, edi
jne 0x50c2de
or esi, 0xffffffff
lea eax, [ebp - 0x30]
push esi
push eax
or edi, esi
call fcn.004ff150
add esp, 8
mov ecx, dword [ebp - 0x24]
push eax
push 1
mov dword [ebp - 4], 1
call fcn.0050a060
lea ecx, [ebp - 0x30]
call fcn.004019e0
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x20]
push 0x16
push eax
call fcn.004ff150
add esp, 8
push eax
push 1
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0050a060
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x50c337
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50c337
push 4
push 2
push dword [ebp - 0x20]
call fcn.00461780
add esp, 0xc
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50ed10
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6945
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.0050a770
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00498670
mov ecx, dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.0050a770
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00498670
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x18]
test eax, eax
setne bl
or esi, 0xffffffff
test ecx, ecx
je 0x50ed9d
mov eax, esi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50ed9d
push 4
push 2
push dword [ebp - 0x18]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x50edbc
lock xadd dword [eax], esi
cmp esi, 1
jne 0x50edbc
push 4
push 2
push dword [ebp - 0x24]
call fcn.00461780
add esp, 0xc
test bl, bl
jne 0x50edd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], 2
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50f040
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c69dd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
push 1
push 0x668e54
push 2
call fcn.004977d0
mov ecx, 0x5c
test al, al
je 0x50f09d
mov word [ebp - 0x14], cx
mov ecx, esi
push 1
push dword [ebp - 0x14]
call fcn.00492580
cmp eax, 3
jle 0x50f213
cmp dword [esi + 8], 2
jne 0x50f0b1
mov eax, dword [esi + 4]
cmp word [eax + 2], 0x3a
je 0x50f213
mov ebx, dword [ebp + 0xc]
or edi, 0xffffffff
cmp byte [ebp + 0x10], 0
je 0x50f12a
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.00531a50
add esp, 8
push ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00498670
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 4], edi
setne byte [ebp - 0xd]
test ecx, ecx
je 0x50f110
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50f110
push 4
push 2
push dword [ebp - 0x20]
call fcn.00461780
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x50f12a
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x5c
mov word [ebp - 0x14], ax
push 1
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004943d0
mov dword [ebp - 4], 0xffffffff
cmp eax, 1
jl 0x50f213
push eax
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.00494450
push 1
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 2
push ebx
push eax
call fcn.0050f040
add esp, 0xc
test al, al
jne 0x50f182
xor bl, bl
jmp 0x50f1e0
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00531a50
add esp, 8
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00498670
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x2c]
test eax, eax
mov byte [ebp - 4], 2
setne bl
test ecx, ecx
je 0x50f1cd
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50f1cd
push 4
push 2
push dword [ebp - 0x2c]
call fcn.00461780
add esp, 0xc
test bl, bl
je 0x50f1d5
mov bl, 1
jmp 0x50f1e0
push esi
lea ecx, [ebp - 0xd]
call fcn.0050e4f0
mov bl, al
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x50f1ff
lock xadd dword [eax], edi
cmp edi, 1
jne 0x50f1ff
push 4
push 2
push dword [ebp - 0x38]
call fcn.00461780
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50f470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0f9d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.0048f140
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0
test eax, eax
je 0x50f4bb
mov eax, dword [eax]
cmp eax, 1
jle 0x50f4c8
push 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00495780
push dword [ebp - 0x18]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp esi, 0x104
jbe 0x50f510
push esi
lea ecx, [ebp - 0x1c]
call fcn.00496e30
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x50f4f7
mov eax, dword [eax]
cmp eax, 1
jle 0x50f504
push 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00495780
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp esi, 2
jb 0x50f54b
mov eax, dword [ebp - 0x18]
cmp word [eax + 2], 0x3a
jne 0x50f54b
movzx ecx, word [eax]
call fcn.00497f80
movzx edi, ax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x50f538
mov eax, dword [eax]
cmp eax, 1
jle 0x50f545
push 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00495780
mov eax, dword [ebp - 0x18]
mov word [eax], di
push esi
lea ecx, [ebp - 0x1c]
call fcn.00496e30
push dword [ebp - 0x10]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0050a130
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x50f587
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x50f587
push 4
push 2
push dword [ebp - 0x1c]
call fcn.00461780
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x511300
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x5c6d45
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x72cec4]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x25c]
mov esi, 1
mov edi, dword [ebp + 0x260]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
test edx, edx
je 0x51136b
mov eax, esi
lock xadd dword [edx], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 0
cmp eax, 2
jne 0x511392
cmp word [ecx + 2], 0x3a
jne 0x511392
mov eax, 0x5c
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x10], ax
push dword [ebp - 0x10]
call fcn.00490310
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00531a50
add esp, 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00498670
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5113fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x5113cc
cmp eax, 0x20
jne 0x5113fc
mov edx, dword [ebp - 0x28]
lea eax, [ebp]
push eax
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 8], eax
test edx, edx
je 0x5113ee
lock xadd dword [edx], esi
call fcn.00510760
add esp, 0x10
test al, al
cmovne ebx, dword [ebp]
test edi, edi
je 0x511408
cmp ebx, 0xffffffff
setne al
mov byte [edi], al
cmp ebx, 0xffffffff
jne 0x511411
xor bl, bl
jmp 0x511417
shr ebx, 4
and bl, 1
mov ecx, dword [ebp - 0x28]
or esi, 0xffffffff
test ecx, ecx
je 0x51143b
mov eax, esi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51143b
push 4
push 2
push dword [ebp - 0x28]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x51145a
lock xadd dword [eax], esi
cmp esi, 1
jne 0x51145a
push 4
push 2
push dword [ebp - 0x1c]
call fcn.00461780
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.00596709
lea esp, [ebp + 0x254]
pop ebp
ret
Function at 0x512760
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c65f5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0050a540
test al, al
je 0x5127d8
push str.Empty_filename_passed_to_function
movaps xmm0, xmmword [0x5e4ea0]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], 0x5cf218
movups xmmword [ebp - 0x24], xmm0
call fcn.004a34c0
add esp, 8
call fcn.005a2cca
mov dword [eax], 0x16
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0050a770
xor ecx, ecx
mov dword [ebp - 4], 0
push 1
mov word [ebp - 0x10], cx
push ecx
push dword [ebp - 0x10]
mov ecx, eax
call fcn.00493da0
mov ecx, dword [ebp - 0x1c]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne bl
or esi, 0xffffffff
test ecx, ecx
je 0x512833
mov eax, esi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x512833
push 4
push 2
push dword [ebp - 0x1c]
call fcn.00461780
add esp, 0xc
test bl, bl
je 0x512841
push str.Broken_filename_passed_to_function
jmp 0x51279b
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.0050a770
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00498670
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 0x30]
setne bl
test eax, eax
je 0x512885
lock xadd dword [eax], esi
cmp esi, 1
jne 0x512885
push 4
push 2
push dword [ebp - 0x30]
call fcn.00461780
add esp, 0xc
test bl, bl
jne 0x51289b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], 2
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5128b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6fc5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.0050a540
test al, al
je 0x512928
push str.Empty_filename_passed_to_function
movaps xmm0, xmmword [0x5e4ea0]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0x5cf218
movups xmmword [ebp - 0x28], xmm0
call fcn.004a34c0
add esp, 8
call fcn.005a2cca
mov dword [eax], 0x16
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.0050a770
xor ecx, ecx
mov dword [ebp - 4], 0
push 1
mov word [ebp - 0x12], cx
push ecx
push dword [ebp - 0x12]
mov ecx, eax
call fcn.00493da0
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne byte [ebp - 0xd]
or edi, 0xffffffff
test ecx, ecx
je 0x512984
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x512984
push 4
push 2
push dword [ebp - 0x20]
call fcn.00461780
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x512994
push str.Broken_filename_passed_to_function
jmp 0x5128eb
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0050a540
test al, al
jne 0x5128e6
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0050a770
xor ecx, ecx
mov dword [ebp - 4], 1
push 1
mov word [ebp - 0x12], cx
push ecx
push dword [ebp - 0x12]
mov ecx, eax
call fcn.00493da0
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne byte [ebp - 0xd]
test ecx, ecx
je 0x5129ff
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x5129ff
push 4
push 2
push dword [ebp - 0x20]
call fcn.00461780
add esp, 0xc
cmp byte [ebp - 0xd], 0
jne 0x51298a
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0050a770
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00498670
mov esi, eax
mov ecx, ebx
lea eax, [ebp - 0x34]
push eax
call fcn.0050a770
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00498670
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x34]
test eax, eax
setne bl
test ecx, ecx
je 0x512a64
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x512a64
push 4
push 2
push dword [ebp - 0x34]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x512a83
lock xadd dword [eax], edi
cmp edi, 1
jne 0x512a83
push 4
push 2
push dword [ebp - 0x40]
call fcn.00461780
add esp, 0xc
test bl, bl
jne 0x512a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], 2
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x512ab0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6fc5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.0050a540
test al, al
je 0x512b28
push str.Empty_filename_passed_to_function
movaps xmm0, xmmword [0x5e4ea0]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0x5cf218
movups xmmword [ebp - 0x28], xmm0
call fcn.004a34c0
add esp, 8
call fcn.005a2cca
mov dword [eax], 0x16
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.0050a770
xor ecx, ecx
mov dword [ebp - 4], 0
push 1
mov word [ebp - 0x12], cx
push ecx
push dword [ebp - 0x12]
mov ecx, eax
call fcn.00493da0
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne byte [ebp - 0xd]
or edi, 0xffffffff
test ecx, ecx
je 0x512b84
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x512b84
push 4
push 2
push dword [ebp - 0x20]
call fcn.00461780
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x512b94
push str.Broken_filename_passed_to_function
jmp 0x512aeb
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0050a540
test al, al
jne 0x512ae6
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0050a770
xor ecx, ecx
mov dword [ebp - 4], 1
push 1
mov word [ebp - 0x12], cx
push ecx
push dword [ebp - 0x12]
mov ecx, eax
call fcn.00493da0
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne byte [ebp - 0xd]
test ecx, ecx
je 0x512bff
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x512bff
push 4
push 2
push dword [ebp - 0x20]
call fcn.00461780
add esp, 0xc
cmp byte [ebp - 0xd], 0
jne 0x512b8a
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0050a770
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00498670
mov esi, eax
mov ecx, ebx
lea eax, [ebp - 0x34]
push eax
call fcn.0050a770
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00498670
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x34]
test eax, eax
setne bl
test ecx, ecx
je 0x512c66
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x512c66
push 4
push 2
push dword [ebp - 0x34]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x512c85
lock xadd dword [eax], edi
cmp edi, 1
jne 0x512c85
push 4
push 2
push dword [ebp - 0x40]
call fcn.00461780
add esp, 0xc
test bl, bl
jne 0x512c9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], 2
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x512d80
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bcf1d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.00531a50
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00498670
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 0x18]
setne bl
test eax, eax
je 0x512df1
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x512df1
push 4
push 2
push dword [ebp - 0x18]
call fcn.00461780
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret