joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a89d7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov dword [ebx], vtable.CCellDictListSyncModule.0
mov dword [esp + 0x20], 4
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 4]
lea esi, [ebx + 0x2c]
push ecx
mov ecx, esi
call fcn.0049b9d0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
xor ebp, ebp
mov dword [esi + 8], ebp
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov edx, dword [ebx + 0x3c]
mov eax, dword [edx + 4]
lea edi, [ebx + 0x38]
push eax
mov ecx, edi
call fcn.0049b9d0
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebp
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov ecx, dword [ebx + 0x48]
mov edx, dword [ecx + 4]
lea ebp, [ebx + 0x44]
push edx
mov ecx, ebp
call fcn.0049b9d0
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [ebp + 8], 0
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov eax, dword [ebx + 0x54]
mov ecx, dword [eax + 4]
add ebx, 0x50
push ecx
mov ecx, ebx
call fcn.0049b9d0
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], 0
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
mov eax, ebx
mov byte [esp + 0x20], 3
call fcn.0049ba30
mov eax, ebp
mov byte [esp + 0x20], 2
call fcn.0049ba30
mov eax, edi
mov byte [esp + 0x20], 1
call fcn.0049ba30
mov eax, esi
mov byte [esp + 0x20], 0
call fcn.0049ba30
mov dword [esp + 0x20], 0xffffffff
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x28]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497cd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x49c580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a6c2d
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
fldz
mov eax, dword [esp + 0x28]
xor ebp, ebp
fstp dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
mov dword [edi + 0x14], 0xffffffff
mov dword [edi + 0x18], ebp
mov dword [edi], vtable.CCfgCustomSync.0
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [edi + 0x1c], eax
mov dword [esp + 0x1c], ebp
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [edi + 0x20], eax
mov bl, 1
mov byte [esp + 0x1c], bl
fldz
fstp dword [edi + 0x2c]
mov dword [edi + 0x24], ebp
mov dword [edi + 0x28], ebp
mov dword [edi + 0x30], ebp
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [edi + 0x34], eax
mov byte [esp + 0x1c], 2
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [edi + 0x38], eax
mov byte [esp + 0x1c], 3
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [edi + 0x3c], eax
mov byte [esp + 0x1c], 4
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [edi + 0x40], eax
mov byte [esp + 0x1c], 5
call fcn.00464620
mov dword [edi + 0x48], eax
mov byte [eax + 0x1d], bl
mov eax, dword [edi + 0x48]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x48]
mov dword [eax], eax
mov eax, dword [edi + 0x48]
mov dword [eax + 8], eax
mov dword [edi + 0x4c], ebp
mov byte [esp + 0x1c], 6
call fcn.00464620
mov dword [edi + 0x54], eax
mov byte [eax + 0x1d], bl
mov eax, dword [edi + 0x54]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x54]
mov dword [eax], eax
mov eax, dword [edi + 0x54]
mov dword [eax + 8], eax
mov dword [edi + 0x58], ebp
mov dword [edi + 0x5c], ebp
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
lea esi, [edi + 0x6c]
call eax
add eax, 0x10
mov dword [esi], eax
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
lea ebx, [edi + 0x74]
call eax
add eax, 0x10
mov dword [ebx], eax
call fcn.00403f60
mov esi, ebx
call fcn.00403f60
cmp dword [edi + 0x30], ebp
mov eax, edi
jne 0x49c70c
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x30], ecx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x49c750
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x5a6bbe
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CCfgCustomSync.0
mov dword [esp + 0x14], 9
mov ecx, dword [esi + 0x1c]
push 1
call fcn.0049eeb0
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [esp + 0x14], 8
mov eax, dword [esi + 0x74]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49c7be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x14], 7
mov eax, dword [esi + 0x6c]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49c7e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi + 0x50]
mov byte [esp + 0x14], 6
call fcn.00463d50
lea eax, [esi + 0x44]
mov byte [esp + 0x14], 5
call fcn.00463d50
mov byte [esp + 0x14], 4
mov eax, dword [esi + 0x40]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49c820
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x14], 3
mov eax, dword [esi + 0x3c]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49c844
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x14], 2
mov eax, dword [esi + 0x38]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49c868
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x14], 1
mov eax, dword [esi + 0x34]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49c88c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x14], 0
mov eax, dword [esi + 0x20]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49c8b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x1c]
sub esi, 0x10
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49c8d7
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x49e110
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5acf4b
mov eax, dword fs:[0]
push eax
sub esp, 0xc28
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0xc20], eax
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0xc38]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x44]
mov dword [esp + 0x14], eax
call fcn.004a7ab0
call fcn.0040cbf0
call fcn.0040dcb0
mov esi, dword [0x5fe584]
mov ecx, 0x304
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x20]
mov dword [0x5fe580], 1
call fcn.0049f3d0
push esi
lea eax, [ebx + 0x50]
push eax
call fcn.004a71d0
lea esi, [ebx + 0x1c]
lea ecx, [esp + 0x10]
push esi
push ecx
mov ebx, str.CompressCfg.ini
call fcn.00412480
lea edx, [esp + 0x20]
push esi
push edx
mov ebx, str.Compress_
mov dword [esp + 0xc50], 0
call fcn.00412480
mov eax, dword [eax]
add esp, 0x10
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e1f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004a7800
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
push 0x46534353
push edx
push eax
call fcn.0049eb40
mov esi, eax
mov dword [esp + 0xc40], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e247
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc20]
xor ecx, esp
call fcn.005787fd
mov esp, ebp
pop ebp
ret 4
Function at 0x49eb40
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x59de08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor esi, esi
xor edi, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], edi
push esi
push 0x80
push 3
push esi
push 1
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x60]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x49eba7
call fcn.004129d0
cmp eax, esi
jge 0x49ebad
xor eax, eax
jmp 0x49ecc7
mov edi, eax
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x30]
push ecx
push edi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
jne 0x49ebd3
call fcn.004129d0
test eax, eax
jl 0x49ebdd
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov esi, eax
mov dword [esp + 0x20], edx
lea eax, [esi + esi + 8]
push eax
call fcn.005786ac
mov ebp, eax
add esp, 4
test ebp, ebp
lea ebx, [esi + ebp]
je 0x49ecad
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push ebp
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49ec18
call fcn.004129d0
test edi, edi
je 0x49ec29
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [esp + 0x18], edi
mov eax, dword [0x5fe650]
test eax, eax
mov edx, dword [esp + 0x54]
mov dword [esp + 0x4c], esi
mov dword [ebx], edx
mov dword [ebx + 4], esi
je 0x49ecad
push 0xffffffffffffffff
push esi
push ebp
lea ecx, [esp + 0x58]
push ecx
lea edx, [ebx + 8]
push edx
call eax
add esp, 0x14
test eax, eax
jne 0x49ecad
push eax
push 0x80
push 2
push eax
mov eax, dword [esp + 0x60]
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x49eca5
call fcn.004129d0
test eax, eax
jne 0x49ecad
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x18]
push edx
add ecx, 8
mov edx, ebx
call fcn.00423680
test edi, edi
je 0x49ec9e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov esi, 1
jmp 0x49ecb1
mov edi, eax
mov dword [esp + 0x18], edi
jmp 0x49ec7e
mov esi, dword [esp + 0x28]
push ebp
call fcn.0057876f
add esp, 4
test edi, edi
je 0x49ecc5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0xc
Function at 0x49ece0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x59ddd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebp
push esi
push 0x80
push 3
push esi
push 1
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x58]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x49eda0
call fcn.004129d0
cmp eax, esi
jl 0x49ee91
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
jne 0x49ed6c
call fcn.004129d0
cmp eax, esi
jl 0x49ee86
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
cmp ebx, esi
ja 0x49ed7d
cmp edi, 8
jbe 0x49ee86
mov esi, 8
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
call fcn.0041ae30
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x4c]
je 0x49eda8
test ebp, ebp
jmp 0x49ee88
mov ebp, eax
mov dword [esp + 0x14], ebp
jmp 0x49ed44
add edi, 0xfffffff8
adc ebx, 0xffffffff
push edi
mov dword [esp + 0x24], ebx
call fcn.0057740a
mov ebx, eax
add esp, 4
mov dword [esp + 0x4c], ebx
test ebx, ebx
mov byte [esp + 0x3c], 1
je 0x49ee6c
mov esi, edi
mov ecx, ebx
lea edx, [esp + 0x14]
call fcn.0041ae30
test eax, eax
jne 0x49ee6c
lea esi, [esp + 0x14]
call fcn.00410620
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x48], eax
call fcn.0057740a
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
mov byte [esp + 0x3c], 2
je 0x49ee5f
lea eax, [esp + 0x44]
push eax
push ebp
mov ecx, edi
mov edx, ebx
call fcn.004704d0
add esp, 8
test eax, eax
jne 0x49ee5f
mov ecx, dword [esp + 0x48]
push 1
push 0x40000000
push ecx
mov edx, esi
push edx
xor edx, edx
mov eax, 0x80
lea ecx, [edx + 2]
call fcn.004129f0
test eax, eax
jne 0x49ee5f
mov ecx, dword [esp + 0x44]
mov eax, esi
push eax
mov edx, ebp
call fcn.00423680
call fcn.00410620
mov dword [esp + 0x18], 1
push ebp
call fcn.0057832c
mov ebp, dword [esp + 0x18]
add esp, 4
push ebx
call fcn.0057832c
add esp, 4
test ebp, ebp
je 0x49ee80
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
jmp 0x49ee93
cmp ebp, esi
je 0x49ee91
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
Function at 0x49eeb0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x5a0968
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ecx, ecx
test esi, esi
mov dword [esp + 0x14], ecx
je 0x49eeff
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00404460
mov edx, dword [eax]
cmp dword [edx - 0xc], 0
mov ecx, 1
je 0x49eeff
xor bl, bl
jmp 0x49ef01
mov bl, 1
test cl, 1
je 0x49ef26
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49ef26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x49ef44
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00404460
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x49f057
cmp eax, ecx
jg 0x49f057
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x49ef87
push 0x5c
lea edi, [esp + 0x14]
call fcn.00404400
push 2
push 0x5c77ac
lea edx, [esp + 0x18]
push edx
call fcn.00403fc0
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
push 0
lea ebx, [eax - 1]
lea edi, [esp + 0x14]
call fcn.0049f070
xor eax, eax
cmp dword [esp + 0x48], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x34], ax
mov word [esp + 0x28], 0x414
jne 0x49efe4
mov word [esp + 0x28], 0x494
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x32], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
neg esi
sbb esi, esi
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esi, 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49f040
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 4
push 0x80070057
call fcn.00404550
int3
Function at 0x4ae380
Capabilities:
Delete file

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
push esi
push edi
lea edi, [ecx + 4]
je 0x4ae3ab
mov edx, dword [edi + 0x14]
cmp eax, edx
je 0x4ae3ab
mov ecx, eax
mov eax, dword [eax + 0xc]
cmp eax, edx
je 0x4ae3ad
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx + 0xc]
cmp eax, edx
jne 0x4ae3a0
jmp 0x4ae3ad
xor ecx, ecx
test ecx, ecx
mov esi, ecx
je 0x4ae421
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4ae3c0
test esi, esi
mov ebx, esi
je 0x4ae416
mov edx, dword [esi + 0x10]
mov ecx, dword [edi + 0x14]
cmp edx, ecx
je 0x4ae3f3
test edx, edx
je 0x4ae3ed
mov eax, dword [edx + 0xc]
cmp eax, ecx
je 0x4ae3ef
jmp 0x4ae3e0
mov edx, eax
mov eax, dword [edx + 0xc]
cmp eax, ecx
jne 0x4ae3e0
mov esi, edx
jmp 0x4ae416
xor edx, edx
mov esi, edx
jmp 0x4ae416
mov eax, dword [esi + 0x14]
cmp eax, ecx
je 0x4ae412
lea ebx, [ebx]
cmp esi, dword [eax + 0x10]
jne 0x4ae40e
mov esi, eax
mov eax, dword [eax + 0x14]
cmp eax, ecx
jne 0x4ae400
cmp eax, ecx
jne 0x4ae414
xor eax, eax
mov esi, eax
mov eax, dword [ebx]
push eax
call ebp
test esi, esi
jne 0x4ae3c0
pop ebp
pop ebx
call fcn.004af2c0
call fcn.004af2c0
mov eax, dword [edi + 0x14]
test eax, eax
pop edi
pop esi
je 0x4ae43b
push eax
call fcn.0057876f
pop ecx
ret
Function at 0x4ae540
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5a4511
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], 1
call eax
mov edi, eax
mov dword [esp + 0x20], 1
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x106
or eax, ecx
jge 0x4ae5d5
mov ecx, 0x106
mov eax, esi
call fcn.00403d50
mov eax, dword [esi]
mov ecx, dword [esp + 0x30]
mov edi, dword [edi]
push eax
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [esp + 0x20], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ae60b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, 0x104
cmp dword [eax - 8], ecx
jl 0x4ae675
mov dword [eax - 0xc], ecx
mov ecx, dword [esi]
mov word [ecx + 0x208], bx
mov edx, dword [esi]
cmp edx, ebx
jne 0x4ae62d
xor eax, eax
jmp 0x4ae643
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4ae632
sub eax, edi
sar eax, 1
js 0x4ae675
cmp eax, dword [edx - 8]
jg 0x4ae675
mov dword [edx - 0xc], eax
mov edx, dword [esi]
mov word [edx + eax*2], bx
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.004ae440
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
push 0x80070057
call fcn.00404550
int3
Function at 0x4ae680
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x59dd70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x40]
push ebp
push 0x80
push 3
push ebp
push 1
push closesocket
push eax
mov dword [esp + 0x54], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4ae763
call fcn.004129d0
cmp eax, ebp
jl 0x4ae87e
lea ecx, [esp + 0x28]
push ecx
push esi
xor edi, edi
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x4ae70c
call fcn.004129d0
cmp eax, ebp
jl 0x4ae716
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov edi, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ebp
lea eax, [edi + edi + 0x20]
push eax
mov byte [esp + 0x3c], 1
call fcn.0057740a
mov ebx, eax
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x20], ebx
jne 0x4ae76e
push ebx
call fcn.00578327
add esp, 4
cmp esi, ebp
je 0x4ae74a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8007000e
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x4ae6e4
push 0
lea ecx, [esp + 0x28]
push ecx
lea ebp, [edi + 0x20]
mov dword [esp + 0x24], ebp
push edi
add ebp, ebx
push ebp
push esi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ae798
call fcn.004129d0
test esi, esi
je 0x4ae7a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [esp + 0x18], esi
mov eax, dword [0x5fe650]
test eax, eax
je 0x4ae868
push 0xffffffffffffffff
push edi
push ebp
lea edx, [esp + 0x28]
push edx
push ebx
call eax
add esp, 0x14
test eax, eax
jne 0x4ae868
push eax
push 0x80
push 2
push eax
push 1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
push 0x40000000
push eax
mov dword [esp + 0x40], 0x46534353
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4ae832
call fcn.004129d0
mov edi, eax
test edi, edi
jge 0x4ae838
push ebx
call fcn.00578327
add esp, 4
test esi, esi
je 0x4ae81c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov esi, eax
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
push ecx
mov ecx, 8
lea edx, [esp + 0x28]
call fcn.00423680
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
mov edx, ebx
call fcn.00423680
test esi, esi
je 0x4ae868
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push ebx
call fcn.00578327
add esp, 4
test esi, esi
je 0x4ae87c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret