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

Disassembly:
sub esp, 0x158
push ebx
push esi
mov ebx, ecx
push 0
mov dword [esp + 0xc], ebx
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
sub eax, 0x93a80
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5965b8
push str._sprofilesindicators.dat
lea eax, [esp + 0x68]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [esp + 0x70]
push 0x581660
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x18
test esi, esi
mov dword [esp + 0xc], esi
je 0x4958b2
push esi
push 1
lea edx, [esp + 0x1c]
push 0x4c
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x495892
push ebp
push edi
mov edx, dword [ebx + 0x18]
xor edi, edi
test edx, edx
jle 0x495874
mov ebp, str.Accelerator_Oscillator
lea esi, [esp + 0x1c]
mov eax, ebp
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x49582a
test cl, cl
je 0x495826
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x49582a
add eax, 2
add esi, 2
test cl, cl
jne 0x495806
xor eax, eax
jmp 0x49582f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x49583d
inc edi
add ebp, 0x4c
cmp edi, edx
jl 0x495800
jmp 0x49586c
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jge 0x495853
xor ecx, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x64]
lea eax, [edi + edi*8]
lea eax, [edi + eax*2]
shl eax, 2
mov dword [eax + 0x58a640], edx
mov dword [eax + 0x58a63c], ecx
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push esi
push 1
lea eax, [esp + 0x24]
push 0x4c
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x4957f2
pop edi
pop ebp
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [ebx + 0x18]
push 0x4956d0
push 0x4c
push ecx
push str.Accelerator_Oscillator
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
add esp, 0x158
ret
Function at 0x4aa330
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x100
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
cmp eax, 1
mov eax, dword [esi + 0x18]
jge 0x4aa365
test eax, eax
je 0x4aa3f3
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x18], 0
pop esi
add esp, 0x100
ret
test eax, eax
jne 0x4aa3ae
xor eax, eax
xor ecx, ecx
mov ax, word [esi + 0x4e]
mov cx, word [esi + 0x4a]
xor edx, edx
push eax
mov dx, word [esi + 0x48]
push ecx
push edx
push 0x5965b8
push str._slogs_04d_02d_02d.log
lea eax, [esp + 0x18]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [esp + 0x20]
push 0x587e28
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x24
mov dword [esi + 0x18], eax
mov edx, dword [esi + 0x18]
test edx, edx
je 0x4aa3ec
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4aa3d1
mov eax, dword [esi + 0x28]
test eax, eax
jle 0x4aa3d1
push edx
push 1
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
pop esi
add esp, 0x100
ret

Function at 0x4aa620
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x100
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x24]
push edi
test eax, eax
je 0x4aa712
mov esi, dword [esp + 0x114]
test esi, esi
je 0x4aa712
mov edx, dword [esp + 0x118]
test edx, edx
je 0x4aa712
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, 1
jl 0x4aa712
cmp ebp, 0x10000
jg 0x4aa712
mov eax, dword [ebx + 0x28]
lea ecx, [eax + ebp]
cmp ecx, 0x10000
jl 0x4aa6f7
test eax, eax
jle 0x4aa6f7
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x4aa6d9
xor eax, eax
xor ecx, ecx
mov ax, word [edx + 6]
mov cx, word [edx + 2]
push eax
xor eax, eax
mov ax, word [edx]
push ecx
push eax
push 0x5965b8
push str._slogs_04d_02d_02d.log
lea ecx, [esp + 0x24]
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [esp + 0x2c]
push 0x587e28
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x24
mov dword [ebx + 0x18], eax
test eax, eax
je 0x4aa712
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x24]
push eax
push 1
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov dword [ebx + 0x28], 0
mov edi, dword [ebx + 0x28]
mov eax, dword [ebx + 0x24]
mov ecx, ebp
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x28], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 8
Function at 0x4aa7d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x110
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x4aa842
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0xa]
mov edx, dword [esp + 6]
mov eax, dword [esp + 4]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push 0x5965b8
push str._slogs_04d_02d_02d.log
lea ecx, [esp + 0x28]
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [esp + 0x30]
push 0x587e28
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x24
mov dword [esi + 0x18], eax
mov edx, dword [esi + 0x18]
test edx, edx
je 0x4aa880
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4aa865
mov ecx, dword [esi + 0x28]
test ecx, ecx
jle 0x4aa865
push edx
push 1
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
add esp, 0x110
ret
Function at 0x4ab010
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x228]
mov ebp, ecx
test edi, edi
mov dword [esp + 0x10], 0x190
je 0x4ab1b2
mov eax, dword [edi + 0xd4]
test eax, eax
jl 0x4ab1b2
cmp eax, 0xf4240
jg 0x4ab1b2
mov ecx, dword [edi + 0xd0]
test ecx, ecx
jne 0x4ab05e
test eax, eax
jg 0x4ab1b2
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x22c]
test eax, eax
je 0x4ab090
push eax
push 0x5965b8
push str._smailbox_s
lea eax, [esp + 0x30]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
jmp 0x4ab0b4
mov ecx, dword [edi + 0x48]
mov edx, dword [edi]
push ecx
push edx
push 0x5965b8
push str._smailbox_d._d
lea eax, [esp + 0x34]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x18
mov ecx, dword [edi + 0x48]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00409920
mov edx, dword [edi + 0xd4]
mov esi, dword [edi + 0xd0]
add esp, 8
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x4ab0fa
mov edx, eax
and edx, 0xf
mov dl, byte [esp + edx + 0x14]
add dl, cl
mov cl, byte [esi + eax]
xor cl, dl
mov byte [esi + eax], cl
mov edx, dword [edi + 0xd4]
inc eax
cmp eax, edx
movsx ecx, cl
jl 0x4ab0d9
lea eax, [esp + 0x24]
push 0x581698
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4ab1ab
lea ecx, [esp + 0x14]
push 0x1e240
push ecx
call fcn.00409920
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
lea edx, [esp + 0x20]
push 4
push edx
call ebx
add esp, 0x18
cmp eax, 1
jne 0x4ab1ab
push esi
push eax
lea eax, [esp + 0x1c]
push 0x10
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4ab1ab
push esi
push eax
push 0xe0
push edi
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4ab1ab
mov eax, dword [edi + 0xd0]
test eax, eax
je 0x4ab188
mov edi, dword [edi + 0xd4]
test edi, edi
jle 0x4ab188
push esi
push 1
push edi
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4ab1ab
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret 8
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret 8
Function at 0x4ab670
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0x260
mov al, byte [0x5937a0]
push ebx
push esi
mov ebx, ecx
push edi
mov byte [esp + 0x28], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x270]
mov dword [esp + 0xc], ebx
test edi, edi
jge 0x4ab6b3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x260
ret 8
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
push 0x5965b8
push str._smailbox_d.
lea ecx, [esp + 0x38]
push 0x103
push ecx
call edi
add esp, 0x14
lea edx, [esp + 0x130]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4ab800
lea ecx, [esp + 0x15c]
lea edx, [esp + 0x2c]
push ecx
push 0x5965b8
push str._smailbox_s
push 0x103
push edx
call edi
lea eax, [esp + 0x40]
push 0x581660
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x1c
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x4ab7f5
mov ecx, dword [ebx + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll__filelength]
push ecx
call edi
mov edx, dword [ebx + 0x10]
push edx
call edi
mov edi, eax
add esp, 8
cmp edi, 0xe0
jbe 0x4ab7eb
push 0
push 0xf4
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
sub edi, 0xf4
lea eax, [edi + 0x10]
push eax
call fcn.004c2e90
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ab7eb
push ebx
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x4ab7a5
push esi
call fcn.004c2eb0
add esp, 4
xor esi, esi
jmp 0x4ab7eb
mov ecx, dword [esp + 0x278]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00409920
add esp, 8
xor eax, eax
xor edx, edx
test edi, edi
jle 0x4ab7e7
mov cl, byte [eax + esi]
mov ebx, eax
and ebx, 0xf
movsx ebp, cl
mov bl, byte [esp + ebx + 0x1c]
add bl, dl
mov edx, ebp
xor bl, cl
mov byte [eax + esi], bl
inc eax
cmp eax, edi
jl 0x4ab7c2
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov byte [edi + esi], 0
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x260
ret 8
Function at 0x4ab820
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x244
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x5965b8
push str._smailbox_d.
lea ecx, [esp + 0x1c]
push 0x103
push ecx
xor ebp, ebp
call ebx
add esp, 0x14
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ab8be
lea ecx, [esp + 0x140]
lea edx, [esp + 0x10]
push ecx
push 0x5965b8
push str._smailbox_s
push 0x103
push edx
call ebx
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x244
ret 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x244
ret 4

Function at 0x4ab8d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x33c
mov eax, dword [esp + 0x340]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
push edi
mov ebp, ecx
push eax
push 0x5965b8
push str._smailbox_d.
lea ecx, [esp + 0x34]
push 0x103
push ecx
xor edi, edi
call esi
add esp, 0x14
lea edx, [esp + 0x20c]
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x4aba03
lea ecx, [esp + 0x238]
lea edx, [esp + 0x28]
push ecx
push 0x5965b8
push str._smailbox_s
push 0x103
push edx
call esi
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x28]
push 0x583e1c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4ab9f5
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea ecx, [esp + 0x1c]
push 4
push ecx
call ebx
add esp, 0x10
test eax, eax
je 0x4ab9e7
push esi
push 1
lea edx, [esp + 0x20]
push 0x10
push edx
call ebx
add esp, 0x10
test eax, eax
je 0x4ab9e7
push esi
push 1
lea eax, [esp + 0x134]
push 0xe0
push eax
call ebx
add esp, 0x10
test eax, eax
je 0x4ab9e7
push edi
push 0x14
push esi
mov dword [esp + 0x204], 1
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 1
lea ecx, [esp + 0x140]
push 0xe0
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edi, eax
add esp, 0x1c
neg edi
sbb edi, edi
neg edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ebx, dword [esp + 0x14]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x33c
ret 4
Function at 0x4b3df0
Capabilities:
Move file

Disassembly:
sub esp, 0x230
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CFileFind::CFileFind
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [esp + 0x240]
mov esi, dword [eax + 4]
test edi, edi
je 0x4b4012
test esi, esi
je 0x4b4012
mov ecx, esi
call sub.MFC42.DLL_CWinApp::GetFirstDocTemplatePosition
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call sub.MFC42.DLL_CWinApp::GetNextDocTemplate
test eax, eax
mov dword [esp + 0x14], eax
je 0x4b4012
mov eax, dword [esp + 0x244]
test eax, eax
jne 0x4b3e7c
mov ecx, ebx
call fcn.004af1b0
lea ecx, [ebx + 0x1ac7c]
call fcn.004b8190
mov ecx, dword [0x596208]
call fcn.00475880
jmp 0x4b3e8c
mov eax, dword [0x5a1a00]
test eax, eax
je 0x4b3e8c
mov ecx, ebx
call fcn.004b3820
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
push ebp
mov ebp, 1
push ebp
push edi
push 0x5965b8
push str._sprofiles_schart_d.chr
lea ecx, [esp + 0x150]
push 0xff
push ecx
call esi
lea edx, [esp + 0x158]
push 0x584dbc
push edx
call ebx
add esp, 0x20
test eax, eax
je 0x4b3f07
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea eax, [esp + 0x40]
push ebp
push edi
push 0x5965b8
push str._sprofiles_schart_02d.chr
push 0xff
push eax
call esi
lea ecx, [esp + 0x58]
lea edx, [esp + 0x158]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x20
inc ebp
cmp ebp, 0xa
jl 0x4b3e9e
push edi
push 0x5965b8
push str._sprofiles_s.chr
lea eax, [esp + 0x4c]
push 0xff
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x40]
push 0
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, 1
pop ebp
jne 0x4b3fe0
cmp dword [esp + 0x10], 0x80
jge 0x4b3fe0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x20]
mov ebx, eax
call sub.MFC42.DLL_CFileFind::IsDots
cmp eax, 1
je 0x4b3fd7
mov edx, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
call dword [edx + 0x40]
cmp eax, 1
je 0x4b3fd7
lea eax, [esp + 0xc]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b3fce
push eax
push edi
push 0x5965b8
push str._sprofiles_s_s
lea ecx, [esp + 0x4c]
push 0xff
push ecx
call esi
mov ecx, dword [esp + 0x2c]
add esp, 0x18
lea eax, [esp + 0x3c]
mov edx, dword [ecx]
push 1
push eax
call dword [edx + 0x88]
inc dword [esp + 0x10]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
cmp ebx, 1
je 0x4b3f41
mov esi, dword [esp + 0x1c]
push edi
mov ecx, esi
call fcn.004b2820
push 0
lea ecx, [esi + 0x2a0]
call fcn.004b5d40
mov eax, dword [esp + 0x244]
test eax, eax
je 0x4b4012
mov byte [0x5a1248], 0
mov byte [0x5a13c8], 0
lea ecx, [esp + 0x20]
call fcn.005628e4
pop edi
pop esi
pop ebx
add esp, 0x230
ret 8
Function at 0x4b7070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push esi
push edi
xor edi, edi
test ebx, ebx
jl 0x4b7167
cmp ebx, 0x63
jg 0x4b7167
mov esi, dword [esp + 0x158]
test esi, esi
je 0x4b7167
push 0x5965b8
push str._s_symbolsets.set
push esi
mov byte [esi], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x4b7152
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x4b70df
mov eax, dword [esp + 0x10]
test byte [esp + 0x14], 0x10
jne 0x4b70eb
cmp edi, ebx
je 0x4b70fe
inc edi
lea ecx, [esp + 0x14]
push ecx
push eax
call ebp
test eax, eax
je 0x4b7146
cmp edi, 0x40
jl 0x4b70db
jmp 0x4b7146
lea edx, [esp + 0x40]
push 0xfa
push edx
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
movsx eax, byte [esi]
push eax
mov byte [esi + 0xfa], 0
call dword [sym.imp.MSVCRT.dll_toupper]
mov byte [esi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
test ecx, ecx
jle 0x4b7142
cmp byte [ecx + esi], 0x2e
je 0x4b7142
dec ecx
test ecx, ecx
jg 0x4b7137
mov byte [ecx + esi], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov cl, byte [esi]
xor eax, eax
test cl, cl
pop edi
pop esi
setne al
pop ebx
add esp, 0x144
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x144
ret 8
Function at 0x4bcac0
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x320
lea ecx, [esp + 4]
push esi
call sub.MFC42.DLL_CFileFind::CFileFind
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
push 0x5965b8
push str._s.new
lea eax, [esp + 0x2c]
push 0xff
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x24]
push 0
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, 1
jne 0x4bcbde
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strrchr]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov edi, eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0xff
push eax
lea eax, [esp + 0x38]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
push 0x2e
push ecx
mov byte [esp + 0x137], 0
call ebx
add esp, 8
test eax, eax
je 0x4bcbd2
lea edx, [esp + 0x30]
mov byte [eax], 0
push edx
push 0x5965b8
push str._s_s.new
lea eax, [esp + 0x13c]
push 0xff
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x30]
lea edx, [esp + 0x230]
push ecx
push 0x5965b8
push str._s_s.exe
push 0xff
push edx
call esi
add esp, 0x14
lea eax, [esp + 0x230]
lea ecx, [esp + 0x130]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4bcbd2
lea edx, [esp + 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp edi, 1
je 0x4bcb17
pop edi
pop ebp
pop ebx
lea ecx, [esp + 8]
call fcn.005628e4
pop esi
add esp, 0x320
ret
Function at 0x4bd930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x104
mov eax, dword [ecx + 0x90]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], ecx
je 0x4bdabd
mov ebp, dword [sym.imp.MSVCRT.dll_strstr]
push str..HLP
push eax
call ebp
add esp, 8
test eax, eax
je 0x4bd969
mov ecx, dword [str..chm]
mov dword [eax], ecx
mov edi, dword [0x5a0f78]
test edi, edi
je 0x4bdabd
mov esi, 0x582c20
lea eax, [edi + 0x58]
mov cl, byte [eax]
mov bl, byte [esi]
mov dl, cl
cmp cl, bl
jne 0x4bd9a7
test dl, dl
je 0x4bd9a3
mov cl, byte [eax + 1]
mov bl, byte [esi + 1]
mov dl, cl
cmp cl, bl
jne 0x4bd9a7
add eax, 2
add esi, 2
test dl, dl
jne 0x4bd97f
xor eax, eax
jmp 0x4bd9ac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4bdabd
mov eax, dword [edi + 0x9c]
mov ecx, edi
push eax
call fcn.004c2940
mov ebx, eax
test ebx, ebx
je 0x4bdabd
mov edx, dword [esp + 0x10]
push 0xff
lea ecx, [esp + 0x18]
mov eax, dword [edx + 0x90]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edx, [esp + 0x20]
push str..chm
push edx
mov byte [esp + 0x127], 0
call ebp
add esp, 0x14
test eax, eax
je 0x4bda05
mov byte [eax], 0
or ecx, 0xffffffff
mov edi, 0x58a2ec
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..chm
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4bdabd
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x90]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 8
mov dword [esi + 0x90], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x4c1a30
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1008
call fcn.00563290
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x101c]
mov ebp, ecx
test edi, edi
je 0x4c1b7c
mov esi, dword [esp + 0x1020]
test esi, esi
je 0x4c1b7c
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
lea eax, [esp + 0x18]
push 4
push eax
mov byte [esi], 0
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4c1b7c
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4c1a99
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1008
ret 8
jl 0x4c1b7c
cmp eax, 0xffa
jg 0x4c1b7c
push edi
push 1
lea ecx, [esp + 0x1c]
push eax
push ecx
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4c1b7c
mov eax, dword [esp + 0x10]
push 0
cdq
sub eax, edx
push 0
push 0xffa
push esi
sar eax, 1
lea edx, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x98]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x10], eax
mov byte [eax + esi], 0
cmp byte [esi], 0
je 0x4c1b6a
mov ebx, dword [sym.imp.MSVCRT.dll_memmove]
mov al, byte [esi]
test al, al
jle 0x4c1b0a
cmp al, 0x20
jge 0x4c1b0a
cmp al, 9
jne 0x4c1b67
cmp al, 0x5c
jne 0x4c1b4d
mov al, byte [esi + 1]
lea edx, [esi + 1]
cmp al, 0x72
je 0x4c1b20
cmp al, 0x6e
je 0x4c1b20
cmp al, 0x74
jne 0x4c1b4d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call ebx
mov al, byte [esi]
add esp, 0xc
cmp al, 0x72
jne 0x4c1b3d
mov byte [esi], 0xd
cmp byte [esi], 0x6e
jne 0x4c1b45
mov byte [esi], 0xa
cmp byte [esi], 0x74
jne 0x4c1b4d
mov byte [esi], 9
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4c1afc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1008
ret 8
mov byte [esi], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1008
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1008
ret 8