joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c364a
Capabilities:
Delete file

Disassembly:
mov eax, 0x4ede97
call fcn.004eadec
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
mov esi, ecx
je 0x4c366e
lea eax, [esi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.004c3d8a
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
lea eax, [esi + 0x50]
push ecx
push eax
mov byte [ebp - 4], 1
call fcn.004c4a34
test al, al
je 0x4c36d8
cmp dword [ebp - 0x10], ebx
je 0x4c36d8
mov ebx, dword [esi + 0x3c]
xor edi, edi
test ebx, ebx
jle 0x4c36c9
mov eax, edi
lea ecx, [esi + 0x38]
call fcn.0045d964
mov ecx, dword [ebp - 0x10]
cmp dword [eax], ecx
je 0x4c36c0
inc edi
cmp edi, ebx
jl 0x4c36a8
jmp 0x4c36c9
push edi
lea eax, [esi + 0x38]
call fcn.004c30f7
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x50]
push eax
call fcn.004c4ab6
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4c3713
push dword [ebp + 8]
lea edi, [ebp + 8]
call fcn.004031b3
mov eax, edi
push eax
lea edi, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.0040f4ba
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c3713
push eax
call fcn.004013aa
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp eax, ebx
pop edi
je 0x4c3725
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c3739
push eax
call fcn.004013aa
cmp dword [ebp + 0xc], ebx
je 0x4c374b
add esi, 0x80
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4c3923
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x4eec77
call fcn.004eadec
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebp + 0x14], edi
mov dword [ebp - 4], edi
je 0x4c394a
lea eax, [ebx + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x14]
cmp dword [eax - 8], edi
je 0x4c3986
push dword [ebp + 8]
lea esi, [ebx + 0x1c]
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x4c3986
mov eax, dword [esi]
cmp dword [eax - 8], edi
je 0x4c3986
push 1
push edi
push edi
push ecx
mov ecx, esi
mov esi, esp
mov dword [ebp - 0x10], esp
call fcn.0040318a
mov ecx, ebx
call fcn.004c3923
mov eax, dword [ebx + 0x14]
cmp dword [eax - 8], edi
je 0x4c3999
mov eax, dword [ebx + 8]
or eax, dword [ebx + 0xc]
jne 0x4c3999
mov dword [ebp + 0xc], edi
cmp dword [ebp + 0x10], edi
jne 0x4c39a1
mov dword [ebp + 0xc], edi
cmp dword [ebp + 0xc], edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x4c39fb
push dword [ebp + 0x10]
lea edi, [ebp + 0x10]
call fcn.004031b3
mov byte [ebp - 4], 1
mov edi, dword [ebp + 0x10]
push edi
call esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4c39df
push dword [ebx + 0x18]
mov eax, dword [ebx + 0x20]
push eax
push edi
call fcn.004c3e1a
add edi, 0xfffffff4
mov byte [ebp - 4], 0
cmp edi, dword [0x51a43c]
je 0x4c39f4
push edi
call fcn.004013aa
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x4c3a12
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4c3a12
lea eax, [ebp + 8]
push eax
lea edi, [ebx + 0x24]
call fcn.0040f4ba
xor edi, edi
mov eax, dword [ebx + 0x14]
cmp dword [eax - 8], edi
je 0x4c3a2d
lea eax, [ebx + 0x1c]
call fcn.004031f5
lea eax, [ebx + 0x20]
call fcn.004031f5
mov dword [ebx + 0x18], edi
cmp dword [ebp + 0x14], edi
je 0x4c3a3f
add ebx, 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c3a53
push eax
call fcn.004013aa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x4c514f
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x4eeb8b
call fcn.004eadec
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x18], 0
jne 0x4c5216
push dword [ebp + 8]
call fcn.004993d3
test eax, eax
pop ecx
je 0x4c5216
mov eax, dword [0x51a438]
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0049942e
add esp, 0xc
test eax, eax
je 0x4c51ee
mov esi, dword [ebp - 0x14]
lea ebx, [edi + 0x20]
push esi
mov ecx, ebx
call fcn.0045f925
test eax, eax
jne 0x4c51d1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c51cc
push eax
call fcn.004013aa
lea eax, [esi - 0xc]
jmp 0x4c5208
push ecx
lea ecx, [ebp - 0x10]
mov esi, esp
mov dword [ebp - 0x18], esp
call fcn.0040318a
push ebx
call fcn.004c4f8b
xor esi, esi
cmp eax, esi
mov dword [edi + 0xc], eax
jne 0x4c521d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c5202
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c5216
push eax
call fcn.004013aa
xor eax, eax
jmp 0x4c52d3
push esi
push eax
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push dword [edi + 0xc]
mov dword [edi + 0x14], eax
push esi
push esi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 0x18], eax
jne 0x4c5272
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c5257
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c526b
push eax
call fcn.004013aa
mov eax, 0x8007000e
jmp 0x4c52d3
push dword [ebp + 8]
lea eax, [edi + 0x1c]
call fcn.00403266
mov dword [edi + 8], esi
mov ecx, dword [ebx]
cmp ecx, esi
je 0x4c5291
mov eax, dword [ecx]
push edi
push 0x4c52e4
call dword [eax + 0x10]
mov ecx, dword [ebx]
cmp ecx, esi
mov eax, dword [edi + 0xc]
mov edi, dword [edi + 0x18]
mov ebx, dword [ebp - 0x10]
je 0x4c52ac
mov edx, dword [ecx]
push 1
push eax
push edi
push ebx
call dword [edx + 0x14]
mov esi, eax
lea eax, [ebx - 0xc]
cmp eax, dword [0x51a43c]
je 0x4c52bd
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c52d1
push eax
call fcn.004013aa
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4c56c9
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x4ed2d8
call fcn.004eadec
push esi
mov esi, dword [ebp + 8]
mov dword [esi], 0x502f54
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
call fcn.0041d924
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], 0x64
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4c8600
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4eeb57
call fcn.004eadec
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], 0x502388
push edi
lea eax, [esi + 8]
mov dword [esi], 0x503230
mov dword [esi + 4], 0x503210
call fcn.004c0ad3
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [0x51a438]
mov dword [esi + 0x28], eax
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 5
call fcn.0041d924
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4ca364
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov eax, 0x2494
lea ebp, [esp - 0x2414]
call fcn.004eae50
mov eax, dword [0x516ad4]
push ebx
push esi
mov esi, edi
mov dword [ebp + 0x2410], eax
call fcn.004ca4da
mov ebx, 0x10000000
push ebx
push 0
lea esi, [ebp - 0x78]
call fcn.0041e6dd
mov eax, dword [edi + 0x80]
mov eax, dword [eax + 8]
push ebx
push eax
mov eax, esi
call fcn.0041e73e
test eax, eax
je 0x4ca4c3
xor ebx, ebx
push ebx
push ebx
push 3
push dword [ebp - 0x54]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x68]
push dword [edi + 0x6c]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [edi + 0x70], eax
je 0x4ca4c3
lea eax, [ebp - 0x80]
push eax
mov eax, esi
call fcn.0041e7a6
mov esi, eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
call fcn.0041e80a
mov esi, dword [esi]
mov eax, dword [eax]
push edi
push 0x80400200
push ebx
push esi
push ebx
push eax
push 0x4fba7c
push dword [edi + 0x70]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0x74], eax
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4ca426
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4ca43a
push eax
call fcn.004013aa
cmp dword [edi + 0x74], ebx
je 0x4ca4c3
mov eax, dword [edi + 0x68]
cmp eax, ebx
mov esi, dword [0x51a438]
mov dword [ebp - 0x7c], esi
jbe 0x4ca468
push eax
lea eax, [ebp - 0x7c]
push str.Range:_bytes_u__r_n
push eax
call fcn.004060d6
mov esi, dword [ebp - 0x7c]
add esp, 0xc
mov eax, dword [esi - 8]
push ebx
push ebx
push eax
push esi
push dword [edi + 0x74]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4ca492
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x4ca48d
push eax
call fcn.004013aa
push 2
pop eax
jmp 0x4ca4c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
lea eax, [esi - 0xc]
jne 0x4ca4b5
cmp eax, dword [0x51a43c]
je 0x4ca4b0
push eax
call fcn.004013aa
xor eax, eax
inc eax
jmp 0x4ca4c5
cmp eax, dword [0x51a43c]
je 0x4ca4c3
push eax
call fcn.004013aa
xor eax, eax
mov ecx, dword [ebp + 0x2410]
pop esi
pop ebx
call fcn.004eae3c
add ebp, 0x2414
leave
ret
Function at 0x4cb591
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x78], ebx
je 0x4cb5a7
call fcn.004cb6ea
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x4cb6b1
cmp dword [eax], 0x18
jne 0x4cb6b1
push edi
push dword [eax + 8]
lea edi, [ebp - 4]
call fcn.004031b3
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 4]
cmp ecx, ebx
jne 0x4cb5df
push 0x10000000
push ebx
push ebx
push 1
jmp 0x4cb68e
cmp ecx, 1
je 0x4cb686
mov ecx, dword [ebp - 4]
cmp dword [ecx - 8], ebx
je 0x4cb686
push dword [eax + 0x10]
lea edi, [ebp - 0x10]
call fcn.004031b3
mov eax, dword [esi + 0x40]
push dword [eax + 0x14]
lea edi, [ebp - 0xc]
call fcn.004031b3
mov eax, dword [0x51a438]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x40]
push dword [eax + 0xc]
lea eax, [ebp - 8]
push dword [ebp - 4]
push str.httphttp:___s:_d
push eax
call fcn.004060d6
mov edi, dword [ebp - 8]
add esp, 0x10
push 0x10000000
push str._local_
push edi
push 3
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x78], eax
lea eax, [edi - 0xc]
cmp eax, dword [0x51a43c]
je 0x4cb65c
push eax
call fcn.004013aa
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4cb670
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4cb69a
push eax
call fcn.004013aa
jmp 0x4cb69a
push 0x10000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
pop edi
je 0x4cb6c5
push eax
call fcn.004013aa
jmp 0x4cb6c5
push 0x10000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x78], eax
mov esi, dword [esi + 0x78]
cmp esi, ebx
jne 0x4cb6d0
xor eax, eax
jmp 0x4cb6e4
push 0x4ca2e7
push esi
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
inc eax
neg eax
sbb eax, eax
and eax, 2
pop esi
pop ebx
leave
ret 4

Function at 0x4cb6fd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x4cb720
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 8]
cmp eax, edi
je 0x4cb715
mov dword [eax], edi
mov ecx, dword [esi + 0x60]
push 2
pop eax
mov dword [ecx + 0xc], eax
jmp 0x4cb771
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov eax, dword [esi + 0x60]
mov dword [ebp - 4], edi
push dword [eax]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cb756
mov eax, dword [ebp - 4]
add dword [esi + 0x5c], eax
mov eax, dword [esi + 0x5c]
cmp eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x60]
sbb eax, eax
add eax, 3
mov dword [ecx + 0xc], eax
jmp 0x4cb75c
mov eax, dword [esi + 0x60]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 8]
cmp eax, edi
je 0x4cb76b
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 0xc]
pop edi
leave
ret 4
Function at 0x4cb84d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, eax
mov esi, edi
call fcn.004cb2ff
test eax, eax
je 0x4cb8e7
push ebx
call fcn.004cb338
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x4cb87c
call ebx
sub eax, dword [edi + 0x68]
cmp eax, 0x4e20
jae 0x4cb8a1
mov eax, edi
call fcn.004cb81f
push 0
call fcn.004cb287
lea esi, [edi + 0xe4]
call fcn.004c259d
mov eax, edi
call fcn.004cb776
cmp eax, 2
je 0x4cb8e6
mov eax, dword [esp + 0x10]
add eax, 0x34
lea esi, [edi + 0x34]
call fcn.004c9e6c
call ebx
sub eax, dword [edi + 0x68]
xor esi, esi
inc esi
cmp eax, esi
jae 0x4cb8c0
mov eax, esi
jmp 0x4cb8c5
call ebx
sub eax, dword [edi + 0x68]
and dword [edi + 0x68], 0
mov dword [edi + 0x64], eax
mov eax, edi
call fcn.004cb81f
mov eax, dword [edi + 0x74]
test eax, eax
mov dword [edi + 0x20], esi
je 0x4cb8e6
push dword [edi + 0x70]
push 0
push 3
call eax
pop ebx
pop edi
pop esi
ret 4
Function at 0x4cbdce
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x4f219a
call fcn.004eadec
sub esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x4cbfc2
cmp dword [ebx + 0x20], 2
mov ecx, dword [eax + 0x84]
push esi
push edi
mov edi, dword [eax + 0x80]
mov dword [ebp - 0x18], ecx
jne 0x4cbf99
push dword [edi + 0x1c]
mov esi, ebx
call fcn.004cb3a4
test eax, eax
jne 0x4cbe64
mov dword [edi + 0xc], 0x50004
mov edi, dword [ebp + 8]
call fcn.004ca1e7
mov edi, ebx
call fcn.004cb101
mov esi, eax
test esi, esi
je 0x4cbe55
push dword [ebx + 0x40]
push dword [ebp - 0x18]
push esi
push dword [ebx + 0x78]
push dword [ebp + 8]
call fcn.004ca147
cmp dword [esi + 0xc], 0
jne 0x4cbfc0
mov dword [esi + 0xc], 2
jmp 0x4cbfc0
push dword [ebp + 8]
mov eax, ebx
call fcn.004cb84d
jmp 0x4cbfc0
mov ecx, dword [edi + 0x1c]
lea eax, [ebx + 0xa4]
mov dword [ebx + 0x54], ecx
cmp dword [eax + 4], 0
ja 0x4cbe80
push 0x80070057
call fcn.004010ca
mov eax, dword [eax]
mov eax, dword [eax]
push ecx
call fcn.004c9d4f
mov eax, dword [ebp + 8]
add eax, 0x34
lea esi, [ebx + 0x34]
call fcn.004c9e6c
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, eax
sub ecx, dword [ebx + 0x68]
xor eax, eax
inc eax
cmp ecx, eax
jb 0x4cbeb1
call esi
sub eax, dword [ebx + 0x68]
mov dword [ebx + 0x64], eax
call esi
lea ecx, [edi + 8]
lea esi, [ebp - 0x14]
mov dword [ebx + 0x68], eax
call fcn.0040318a
and dword [ebp - 4], 0
push 0x4ff77c
mov eax, esi
call fcn.00410c3f
xor ecx, ecx
mov esi, eax
call fcn.00410c59
test eax, eax
jle 0x4cbee9
lea eax, [ebp - 0x14]
call fcn.004031f5
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.004c98c4
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x50]
push eax
push dword [ebx + 0x54]
mov eax, ebx
push ecx
call fcn.004cb3e5
neg eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
sbb al, al
inc al
add ecx, 0xfffffff4
cmp ecx, dword [0x51a43c]
mov byte [ebp - 0xd], al
je 0x4cbf2f
push ecx
call fcn.004013aa
mov al, byte [ebp - 0xd]
test al, al
je 0x4cbf67
mov eax, ebx
call fcn.004cb81f
mov eax, dword [ebx + 0x74]
test eax, eax
mov dword [ebx + 0x20], 1
je 0x4cbf51
push dword [ebx + 0x70]
push 0
push 3
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4cbfc0
push eax
call fcn.004013aa
jmp 0x4cbfc0
mov eax, dword [ebx + 0x74]
test eax, eax
mov dword [ebx + 0x20], 3
je 0x4cbf7e
push dword [ebx + 0x70]
push 0
push 1
call eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4cbf96
push eax
call fcn.004013aa
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x54]
cmp ecx, dword [edi + 0x1c]
jne 0x4cbfb2
mov dword [edi + 0xc], 0x10004
push dword [ebx + 0x48]
call fcn.004ca2c5
jmp 0x4cbfc0
mov dword [edi + 0xc], 0x50004
mov edi, eax
call fcn.004ca1e7
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4cf883
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp word [0x520ef8], ax
push esi
mov esi, 0x520ef8
jne 0x4cf8b6
lea ecx, [ebp - 4]
push ecx
push esi
push 0x104
push eax
push str.mp3PRO.dll
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4cf8cf
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4cf8cf
and al, 0x10
xor ecx, ecx
cmp al, 0x10
setne cl
mov eax, ecx
jmp 0x4cf8d1
xor eax, eax
pop esi
leave
ret

Function at 0x4d0fcc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [edi]
mov cx, word [eax + 0x10]
push ebx
push esi
movzx esi, cx
add esi, 0x12
cmp esi, 0x12
jne 0x4d0ff3
cmp word [eax], 1
jne 0x4d0ff3
test cx, cx
jne 0x4d0ff3
push 0x10
pop esi
mov eax, dword [edi + 0x1c]
lea eax, [esi + eax + 0x14]
mov dword [ebp - 0x10], eax
xor eax, eax
push eax
push eax
lea ebx, [edi + 4]
push eax
mov eax, ebx
mov dword [ebp - 0x14], 0x46464952
mov dword [ebp - 0xc], 0x45564157
call fcn.004b5d54
push 0xc
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
call fcn.004bd978
mov eax, dword [edi + 0x1c]
push 1
push 0
mov dword [ebp - 4], eax
add esi, 8
push esi
mov eax, ebx
mov dword [ebp - 8], 0x61746164
call fcn.004b5d54
push 8
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.004bd978
pop esi
pop ebx
leave
ret
Function at 0x4d3092
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x516ad4]
push ebx
xor ebx, ebx
cmp dword [0x52110c], ebx
mov dword [ebp + 0x1e4], eax
push edi
je 0x4d322f
mov eax, dword [0x521108]
cmp eax, ebx
je 0x4d322f
call eax
movzx ecx, ah
cmp ecx, 1
je 0x4d30da
cmp ecx, 0xe8
jne 0x4d30e4
movzx edi, al
cmp edi, ebx
mov dword [ebp - 0x80], edi
jne 0x4d30eb
xor eax, eax
jmp 0x4d3241
mov dword [ebp - 0x70], ebx
push esi
lea esi, [ebx + 0x41]
movzx eax, si
push eax
lea eax, [ebp - 0x60]
push 0x503b10
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x4d312b
mov eax, dword [ebp + 0x1f0]
or esi, 0x20
or eax, 0x20
cmp si, ax
je 0x4d3131
inc dword [ebp - 0x70]
inc ebx
cmp ebx, 0x1a
jl 0x4d30ef
and dword [ebp - 0x6c], 0
and dword [ebp - 0x64], 0
test edi, edi
jle 0x4d3214
push 8
pop edi
push 0x3c
lea eax, [ebp + 0x1a8]
push 0
push eax
call sub.MSVCRT.dll_memset
mov al, byte [ebp - 0x64]
mov byte [ebp + 0x1aa], al
lea eax, [ebp + 0x1a8]
push eax
mov byte [ebp + 0x1a8], 0
call dword [0x52110c]
add esp, 0x10
cmp byte [ebp + 0x1a9], 1
jne 0x4d3205
movzx esi, byte [ebp + 0x1d5]
test esi, esi
jne 0x4d318e
mov esi, edi
and dword [ebp - 0x68], 0
test esi, esi
jle 0x4d3205
xor ebx, ebx
push 0xc
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov al, byte [ebp - 0x64]
mov byte [ebp - 0x7a], al
mov al, byte [ebp - 0x68]
mov byte [ebp - 0x74], al
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 0x7c], 1
mov byte [ebp - 0x73], bl
call dword [0x52110c]
add esp, 0x10
cmp byte [ebp - 0x7b], 1
jne 0x4d31dc
cmp byte [ebp - 0x72], 5
jne 0x4d31dc
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x70]
je 0x4d31e3
inc dword [ebp - 0x6c]
inc ebx
cmp ebx, edi
jl 0x4d3198
jmp 0x4d31fd
mov eax, dword [ebp + 0x1f4]
mov cl, byte [ebp - 0x7a]
mov byte [eax + 4], cl
mov cl, byte [ebp - 0x74]
mov byte [eax + 6], cl
mov cl, byte [ebp - 0x73]
mov dword [eax], edi
mov byte [eax + 7], cl
inc dword [ebp - 0x68]
cmp dword [ebp - 0x68], esi
jl 0x4d3196
inc dword [ebp - 0x64]
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x80]
jl 0x4d3144
mov eax, dword [ebp + 0x1f4]
mov cx, word [ebp + 0x1f0]
or dword [eax + 0xc], 0xffffffff
mov word [eax + 8], cx
xor eax, eax
inc eax
pop esi
jmp 0x4d3241
push dword [ebp + 0x1f0]
mov ebx, dword [ebp + 0x1f4]
call fcn.004d2dfe
pop ecx
mov ecx, dword [ebp + 0x1e4]
pop edi
pop ebx
call fcn.004eae3c
add ebp, 0x1e8
leave
ret
Function at 0x4dbd0a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x16], bl
push edi
mov dword [esi + 0xc18], ebx
je 0x4dbd24
mov byte [ebp + 0x10], 1
cmp byte [ebp + 0x14], bl
mov dword [ebp - 4], SysReAllocStringLen
je 0x4dbd37
mov dword [ebp - 4], 0xc0000000
cmp byte [ebp + 0x10], bl
mov dword [ebp + 0x14], 1
je 0x4dbd4a
mov dword [ebp + 0x14], 3
mov al, byte [esi + 0x15]
neg al
sbb eax, eax
and eax, 0xf8000000
add eax, 0x8000000
mov edi, eax
call fcn.004e4e58
test eax, eax
je 0x4dbd86
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4dbd86
cmp word [eax], bx
je 0x4dbd86
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4dbd9a
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4dbdb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4dbdb6
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
cmp byte [ebp + 0x13], bl
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
je 0x4dbe1d
cmp dword [ebp + 0xc], ebx
mov dword [esi + 4], edi
je 0x4dbde6
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.004de40e
pop ecx
pop ecx
jmp 0x4dbded
mov word [esi + 0x418], bx
cmp dword [ebp + 8], ebx
lea eax, [esi + 0x17]
je 0x4dbe02
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x4dbe13
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.004de1e4
add esp, 0xc
push dword [esi + 4]
mov ecx, esi
call fcn.004dba47
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4dbf26
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x4dbf4c
cmp dword [ebp + 0xc], esi
jbe 0x4dbf41
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4dbf9c
mov ecx, edi
call fcn.004dbcc4
test al, al
je 0x4dbf82
cmp dword [ebp + 0xc], esi
jbe 0x4dbf82
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004dbf26
jmp 0x4dbf9f
cmp dword [edi + 0xc], 1
jne 0x4dbf97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4dbf97
xor eax, eax
jmp 0x4dbf9f
or eax, 0xffffffff
jmp 0x4dbf9f
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8