joyce8/EMBER2024-capa huggingface dataset:
Function at 0x578f80
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
push edi
test byte [ebx + 0x18], 3
jne 0x578ff1
mov edi, dword [esp + 0x14]
xor eax, eax
mov edx, edi
mov esi, 3
nop dword [eax]
ror eax, 0x19
lea edx, [edx + 4]
xor eax, dword [edx - 4]
sub esi, 1
jne 0x578fa0
xor edx, edx
xor ebp, ebp
div dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x14], eax
test esi, esi
je 0x578ff1
mov ecx, dword [edi]
cmp dword [esi + 4], ecx
jne 0x578fe9
mov eax, dword [esi + 8]
cmp eax, dword [edi + 4]
jne 0x578fe9
mov ax, word [esi + 0xc]
cmp ax, word [edi + 8]
jne 0x578fe9
mov ax, word [esi + 0xe]
cmp ax, word [edi + 0xa]
je 0x578ffd
mov ebp, esi
mov esi, dword [esi]
test esi, esi
jne 0x578fc8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
push esi
mov ecx, ebx
call fcn.0042a1d0
mov eax, dword [esi]
test ebp, ebp
je 0x579010
mov dword [ebp], eax
jmp 0x579016
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
dec dword [ebx + 0xc]
lea ecx, [ebx + 4]
push ecx
push ecx
mov ecx, dword [ecx]
push esi
call fcn.0057adf0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4

Function at 0x579030
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
push edi
test byte [ebx + 0x18], 3
jne 0x5790a1
mov edi, dword [esp + 0x14]
xor eax, eax
mov edx, edi
mov esi, 3
nop dword [eax]
ror eax, 0x19
lea edx, [edx + 4]
xor eax, dword [edx - 4]
sub esi, 1
jne 0x579050
xor edx, edx
xor ebp, ebp
div dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x14], eax
test esi, esi
je 0x5790a1
mov ecx, dword [edi]
cmp dword [esi + 4], ecx
jne 0x579099
mov eax, dword [esi + 8]
cmp eax, dword [edi + 4]
jne 0x579099
mov ax, word [esi + 0xc]
cmp ax, word [edi + 8]
jne 0x579099
mov ax, word [esi + 0xe]
cmp ax, word [edi + 0xa]
je 0x5790ad
mov ebp, esi
mov esi, dword [esi]
test esi, esi
jne 0x579078
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
push esi
mov ecx, ebx
call fcn.0042a1d0
mov edx, dword [esp + 0x18]
test edx, edx
je 0x5790c8
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [esi]
test ebp, ebp
je 0x5790d3
mov dword [ebp], eax
jmp 0x5790d9
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
dec dword [ebx + 0xc]
lea ecx, [ebx + 4]
push ecx
push ecx
mov ecx, dword [ecx]
push esi
call fcn.0057adf0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x592880
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640c70
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebx], 0
lea eax, [ebx + 0x10c]
mov dword [ebx + 4], 0
mov ecx, 0x20
mov dword [ebx + 8], 0
nop
mov dword [eax - 0x100], 0
lea eax, [eax + 4]
mov dword [eax - 4], 0xffffffff
mov dword [eax - 0x84], 0xffffffff
sub ecx, 1
jne 0x5928d0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ecx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
mov dword [ebp - 0x1c], ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x592934
mov ecx, dword [ebp - 0x14]
mov eax, ecx
and eax, 1
test cl, 2
je 0x592925
inc eax
test cl, 4
lea esi, [eax + 1]
cmove esi, eax
test cl, 8
je 0x592934
inc esi
mov ecx, 1
mov eax, 0x20
cmp esi, ecx
cmova ecx, esi
inc ecx
cmp ecx, eax
cmovl eax, ecx
xor edi, edi
mov dword [ebx + 8], eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp edi, dword [ebx + 8]
jge 0x592a1b
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [ebx + edi*4 + 0x8c], eax
call esi
push 0x28
mov dword [ebx + edi*4 + 0x10c], eax
call fcn.00606edf
add esp, 4
mov esi, eax
push 0
push 0
push 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0
mov dword [esi], vtable.CMaaThread.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x10]
mov dword [ecx], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x18], 0xaa5555aa
mov dword [esi], vtable.CVpnRawSendPaketsThread.0
mov dword [esi + 0x1c], ebx
mov eax, dword [ebx + edi*4 + 0x8c]
mov dword [esi + 0x20], eax
mov eax, dword [ebx + edi*4 + 0x10c]
mov dword [esi + 0x24], eax
mov dword [ebx + edi*4 + 0xc], esi
test esi, esi
je 0x592a04
push ecx
push 0
push esi
push 0x5e0ec0
push 0
push 0
call fcn.0061408e
add esp, 0x18
mov dword [esi + 0xc], eax
inc edi
jmp 0x59294e
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 0x5acb50
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, ecx
push edi
mov edi, dword [ebp]
test edi, edi
je 0x5acbf8
test byte [edi + 0x10], 2
je 0x5acb6d
mov eax, dword [edi + 8]
pop edi
pop ebp
pop ecx
ret
mov edx, dword [edi + 0xc]
push esi
mov esi, dword [edi + 4]
mov dword [esp + 0xc], 0
cmp esi, 4
ja 0x5acba4
push esi
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00609db0
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [edi + 8], eax
mov ecx, dword [ebp]
pop esi
pop edi
or word [ecx + 0x10], 2
pop ebp
pop ecx
ret
mov ecx, esi
xor eax, eax
sar ecx, 2
test ecx, ecx
je 0x5acbc7
push ebx
xor ebx, ebx
shl eax, 7
shr ebx, 0x19
or eax, ebx
xor eax, dword [edx]
add edx, 4
mov ebx, eax
sub ecx, 1
jne 0x5acbb2
pop ebx
and esi, 3
je 0x5acbe8
mov ecx, eax
nop
shr ecx, 0x19
lea edx, [edx + 1]
shl eax, 7
or eax, ecx
movzx ecx, byte [edx - 1]
xor eax, ecx
mov ecx, eax
sub esi, 1
jne 0x5acbd0
mov dword [edi + 8], eax
mov ecx, dword [ebp]
pop esi
pop edi
pop ebp
or word [ecx + 0x10], 2
pop ecx
ret
pop edi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x5b7c90
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x5b7c9e
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
jmp 0x5b7ca5
mov ecx, 0x651f68
xor edx, edx
mov eax, ecx
push ebx
push ebp
push esi
lea ebp, [edx + eax]
push edi
cmp eax, ebp
jae 0x5b7ccd
mov bl, byte [ecx]
cmp bl, 0x20
je 0x5b7cc8
cmp bl, 0xa
je 0x5b7cc8
cmp bl, 0xd
je 0x5b7cc8
cmp bl, 9
jne 0x5b7cd8
inc ecx
cmp ecx, ebp
jb 0x5b7cb2
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 8
cmp bl, 0x2b
je 0x5b7ce2
cmp bl, 0x2d
jne 0x5b7ce7
inc ecx
cmp ecx, ebp
jae 0x5b7ccd
mov dl, byte [ecx]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x5b7ccd
movsx eax, dl
mov edi, 0x30
inc ecx
sub edi, eax
cmp ecx, ebp
jae 0x5b7d58
nop
mov bh, byte [ecx]
mov al, bh
sub al, 0x30
cmp al, 9
ja 0x5b7d58
lea edx, [edi + edi*4]
add edx, edx
cmp edi, 0xf3333335
jl 0x5b7d24
movsx eax, bh
mov edi, edx
sub edi, eax
add edi, 0x30
inc ecx
jmp 0x5b7d54
mov esi, edi
mov eax, 0x66666667
mov edi, edx
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jne 0x5b7ccd
movsx eax, bh
mov edx, 0x30
sub edx, eax
mov esi, edi
add edi, edx
inc ecx
cmp edi, esi
jg 0x5b7ccd
cmp ecx, ebp
jb 0x5b7d00
cmp bl, 0x2d
je 0x5b7d65
neg edi
js 0x5b7ccd
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x5c9cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643b7d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], dl
mov ebx, ecx
push 0
mov edx, ebx
lea ecx, [ebp - 0x14]
call fcn.005b43d0
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x5c9d3f
mov eax, dword [esi + 0xc]
jmp 0x5c9d44
mov eax, 0x651f68
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5c9d58
cmp byte [ebp - 0xd], 0
jne 0x5c9d82
test esi, esi
je 0x5c9d6e
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jne 0x5c9d6e
push ecx
mov ecx, esi
call fcn.005a47b0
mov eax, 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
push ebx
lea eax, [ebp - 0x18]
push str.CMaaFile::GetFileAttributes__S_
push eax
call fcn.005ac360
add esp, 0xc
push 0xffffffffffffffff
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.005a5da0
push eax
lea ecx, [ebp - 0x20]
call fcn.005d1470
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004250c0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041aad0
push 0x6a3c84
lea eax, [ebp - 0x28]
push eax
call fcn.006089ec
int3
Function at 0x5ca6f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643cdf
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], edx
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 0
mov edi, dword [ebx]
test edi, edi
je 0x5ca780
mov esi, dword [edi + 4]
test esi, esi
jle 0x5ca775
mov eax, dword [edi + 0xc]
cmp byte [esi + eax - 1], 0x5c
jne 0x5ca775
mov ecx, esi
cmp ecx, 2
jb 0x5ca75d
add ecx, 0xfffffffe
mov edx, 0x66d290
push 2
add ecx, eax
call fcn.005a4c60
add esp, 4
test al, al
jne 0x5ca779
push ecx
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.005ae660
mov edi, dword [eax]
mov ebx, 2
mov esi, dword [ebp - 0x18]
jmp 0x5ca78c
test edi, edi
je 0x5ca780
lock inc dword [edi]
mov esi, edi
jmp 0x5ca784
xor esi, esi
xor edi, edi
mov dword [ebp - 0x18], esi
mov ebx, 1
mov dword [ebp - 0x10], ebx
push 0
test edi, edi
je 0x5ca79a
lock inc dword [edi]
jmp 0x5ca79c
xor edi, edi
sub esp, 8
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push 0x5c
push 0x2f
call fcn.005acc00
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.005a44c0
mov ecx, dword [ebp - 0x14]
or ebx, 4
or edi, 0xffffffff
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x5ca7e0
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x5ca7e0
push ecx
call fcn.005a47b0
lea edx, [ebp - 0x1c]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.005b43d0
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x5ca80b
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x5ca80b
push ecx
call fcn.005a47b0
test bl, 2
je 0x5ca829
mov ecx, dword [ebp - 0x24]
and ebx, 0xfffffffd
test ecx, ecx
je 0x5ca829
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x5ca829
push ecx
call fcn.005a47b0
mov byte [ebp - 4], 7
test bl, 1
je 0x5ca847
test esi, esi
je 0x5ca847
mov eax, edi
lock xadd dword [esi], eax
dec eax
jne 0x5ca847
push ecx
mov ecx, esi
call fcn.005a47b0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5ca853
mov eax, dword [eax + 0xc]
jmp 0x5ca858
mov eax, 0x651f68
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x5ca867
mov bl, 1
jmp 0x5ca87e
push dword [ebp - 0x28]
push str.CMaaFile::chdir___S__
push dword [ebp - 0x2c]
push 0xffffffffffffffff
call fcn.005cb790
add esp, 0x10
mov bl, al
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x5ca892
lock xadd dword [ecx], edi
dec edi
jne 0x5ca892
push ecx
call fcn.005a47b0
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 0x5cac60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643e6e
mov eax, dword fs:[0]
push eax
mov eax, 0x523c
call fcn.006272c0
mov eax, dword [0x6a6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x521c], esi
mov dword [ebp - 0x522c], esi
mov dword [ebp - 0x5230], 0
mov dword [esi], 0
lea eax, [ebp - 0x5218]
mov dword [ebp - 4], 0
push eax
push 0x2904
mov dword [ebp - 0x5230], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x5cace6
test bl, bl
jne 0x5cae2b
jmp 0x5cadd0
cmp eax, 0x2904
ja 0x5cad48
lea edx, [ebp - 0x5218]
lea ecx, [ebp - 0x521c]
call fcn.004b7ca0
mov ecx, dword [esi]
or edi, 0xffffffff
mov edx, dword [eax]
cmp ecx, edx
je 0x5cad24
mov dword [esi], edx
mov dword [eax], 0
test ecx, ecx
je 0x5cad24
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x5cad24
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x521c]
test ecx, ecx
je 0x5cadd0
lock xadd dword [ecx], edi
dec edi
jne 0x5cadd0
push ecx
call fcn.005a47b0
jmp 0x5cadd0
push 0xffffffffffffffff
add eax, 0x2904
lea ecx, [ebp - 0x5244]
push eax
call fcn.005b8b90
mov dword [ebp - 4], 2
mov edi, dword [ebp - 0x5240]
test edi, edi
jne 0x5cad7e
cmp dword [ebp - 0x5238], edi
je 0x5cad7e
test bl, bl
jne 0x5cae67
jmp 0x5cadc7
push edi
push dword [ebp - 0x523c]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
test ecx, ecx
jne 0x5cad9b
test bl, bl
jne 0x5caea0
jmp 0x5cadc7
mov eax, dword [ebp - 0x523c]
add eax, eax
cmp ecx, eax
ja 0x5cadee
mov edx, edi
lea ecx, [ebp - 0x521c]
call fcn.004b7ca0
push eax
mov ecx, esi
call fcn.005a5c80
lea ecx, [ebp - 0x521c]
call fcn.004250c0
push edi
call fcn.00606eda
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00606a47
mov esp, ebp
pop ebp
ret
test bl, bl
je 0x5cadc7
push 0xffffffffffffffff
push str.CMaaFile::getcwd__
lea ecx, [ebp - 0x5228]
call fcn.005d1470
lea eax, [ebp - 0x5228]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x5220]
call fcn.0041aad0
push 0x6a3c84
lea eax, [ebp - 0x5220]
push eax
call fcn.006089ec
push 0xffffffffffffffff
push str.CMaaFile::getcwd__
lea ecx, [ebp - 0x5220]
call fcn.005d1470
lea eax, [ebp - 0x5220]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x5228]
call fcn.0041aad0
push 0x6a3c84
lea eax, [ebp - 0x5228]
push eax
call fcn.006089ec
push 0
push str.CMaaFile::getcwd_____new___error
lea ecx, [ebp - 0x5228]
call fcn.005d1470
lea eax, [ebp - 0x5228]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x5220]
call fcn.0041aad0
push 0x6a3c84
lea eax, [ebp - 0x5220]
push eax
call fcn.006089ec
push 0xffffffffffffffff
push str.CMaaFile::getcwd__
lea ecx, [ebp - 0x5228]
call fcn.005d1470
lea eax, [ebp - 0x5228]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x5220]
call fcn.0041aad0
push 0x6a3c84
lea eax, [ebp - 0x5220]
push eax
call fcn.006089ec
int3
Function at 0x5ccc10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, ecx
push edi
cmp dword [esi + 9], 0
je 0x5ccc86
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x5ccc92
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x5ccc45
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x5ccc45
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
mov eax, dword [esi + 9]
push edi
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x5ccc94
push 0xffffffffffffffff
push str.WriteFile__
mov ecx, esi
call fcn.0045bfb0
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push str.Bad_implementation
call fcn.0045bfb0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x5cd1e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6442cd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov edi, ecx
push 0
mov edx, edi
lea ecx, [ebp - 0x14]
call fcn.005b43d0
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x5cd22e
mov eax, dword [esi + 0xc]
jmp 0x5cd233
mov eax, 0x651f68
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x5cd26c
test bl, bl
jne 0x5cd296
test esi, esi
je 0x5cd258
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jne 0x5cd258
push ecx
mov ecx, esi
call fcn.005a47b0
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
test esi, esi
je 0x5cd282
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jne 0x5cd282
push ecx
mov ecx, esi
call fcn.005a47b0
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
lea ecx, [ebp - 0x10]
call fcn.00406030
push edi
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push str.DeleteFile__S_error:
push eax
call fcn.005abfb0
add esp, 0xc
lea ecx, [ebp - 0x10]
push 0xffffffffffffffff
call fcn.005a5da0
push eax
lea ecx, [ebp - 0x1c]
call fcn.005d1470
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x24]
call fcn.0041aad0
push 0x6a3c84
lea eax, [ebp - 0x24]
push eax
call fcn.006089ec
int3
Function at 0x5cd2f0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64430d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
push ecx
push ecx
lea ecx, [ebp - 0x10]
call fcn.005a68f0
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0x5c
push 0x2f
call fcn.005acc00
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.005a44c0
mov ecx, dword [ebp - 0x10]
or edi, 0xffffffff
test ecx, ecx
je 0x5cd35f
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x5cd35f
push ecx
call fcn.005a47b0
push 0
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.005b43d0
add esp, 4
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x5cd386
mov eax, dword [esi + 0xc]
jmp 0x5cd38b
mov eax, 0x651f68
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dl, bl
lea ecx, [ebp - 0x14]
call fcn.005cd1e0
mov bl, al
test esi, esi
je 0x5cd3b5
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
jne 0x5cd3b5
push ecx
mov ecx, esi
call fcn.005a47b0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5cd3c9
lock xadd dword [ecx], edi
dec edi
jne 0x5cd3c9
push ecx
call fcn.005a47b0
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 0x5cdd30
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64448d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [ecx]
push 0
test eax, eax
je 0x5cdd66
lock inc dword [eax]
jmp 0x5cdd68
xor eax, eax
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
push 0x5c
push 0x2f
call fcn.005acc00
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.005a44c0
mov ecx, dword [ebp - 0x14]
or esi, 0xffffffff
test ecx, ecx
je 0x5cdda6
mov eax, esi
lock xadd dword [ecx], eax
dec eax
jne 0x5cdda6
push ecx
call fcn.005a47b0
lea edx, [ebp - 0x24]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.005b43d0
add esp, 4
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x5cddd1
mov eax, esi
lock xadd dword [ecx], eax
dec eax
jne 0x5cddd1
push ecx
call fcn.005a47b0
mov eax, dword [edi]
push 0
test eax, eax
je 0x5cddde
lock inc dword [eax]
jmp 0x5cdde0
xor eax, eax
sub esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
push 0x5c
push 0x2f
call fcn.005acc00
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.005a44c0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5cde18
mov eax, esi
lock xadd dword [ecx], eax
dec eax
jne 0x5cde18
push ecx
call fcn.005a47b0
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.005b43d0
add esp, 4
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x5cde44
mov eax, esi
lock xadd dword [ecx], eax
dec eax
jne 0x5cde44
push ecx
call fcn.005a47b0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5cde50
mov ecx, dword [eax + 0xc]
jmp 0x5cde55
mov ecx, 0x651f68
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5cde61
mov eax, dword [eax + 0xc]
jmp 0x5cde66
mov eax, 0x651f68
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x5cdeaf
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x5cde88
mov eax, esi
lock xadd dword [ecx], eax
dec eax
jne 0x5cde88
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x5cde9c
lock xadd dword [ecx], esi
dec esi
jne 0x5cde9c
push ecx
call fcn.005a47b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
jne 0x5cdef2
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x5cdecb
mov eax, esi
lock xadd dword [ecx], eax
dec eax
jne 0x5cdecb
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x5cdedf
lock xadd dword [ecx], esi
dec esi
jne 0x5cdedf
push ecx
call fcn.005a47b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push str.Rename
lea ecx, [ebp - 0x28]
call fcn.005d1470
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x18]
call fcn.0041aad0
push 0x6a3c84
lea eax, [ebp - 0x18]
push eax
call fcn.006089ec
int3
Function at 0x5cdfe0
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64450d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, dl
mov byte [ebp - 0x11], al
mov ebx, ecx
mov dword [ebp - 0x18], ebx
or edi, 0xffffffff
test al, al
je 0x5ce06b
push 0
mov edx, ebx
lea ecx, [ebp - 0x20]
call fcn.005b43d0
add esp, 4
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x5ce034
mov eax, dword [esi + 0xc]
jmp 0x5ce039
mov eax, 0x651f68
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
mov ebx, eax
test esi, esi
je 0x5ce05e
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
jne 0x5ce05e
push ecx
mov ecx, esi
call fcn.005a47b0
cmp ebx, 0xffffffff
je 0x5ce068
test bl, 0x10
jne 0x5ce0d2
mov ebx, dword [ebp - 0x18]
push 0
mov edx, ebx
lea ecx, [ebp - 0x20]
call fcn.005b43d0
add esp, 4
mov dword [ebp - 4], 4
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x5ce08d
mov eax, dword [esi + 0xc]
jmp 0x5ce092
mov eax, 0x651f68
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5ce0bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x5ce0e6
cmp byte [ebp - 0x11], 0
je 0x5ce0e6
xor dl, dl
mov ecx, ebx
call fcn.005c9cf0
test al, 0x10
je 0x5ce0e6
test esi, esi
je 0x5ce0d2
lock xadd dword [esi], edi
dec edi
jne 0x5ce0d2
push ecx
mov ecx, esi
call fcn.005a47b0
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
cmp byte [ebp + 8], 0
jne 0x5ce113
test esi, esi
je 0x5ce0ff
lock xadd dword [esi], edi
dec edi
jne 0x5ce0ff
push ecx
mov ecx, esi
call fcn.005a47b0
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
push 0xffffffffffffffff
push str.CMaaFile::MkDir__
lea ecx, [ebp - 0x1c]
call fcn.005d1470
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x28]
call fcn.0041aad0
push 0x6a3c84
lea eax, [ebp - 0x28]
push eax
call fcn.006089ec
int3