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

Disassembly:
mov eax, 0x4eed8f
call fcn.004ebd20
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
mov esi, ecx
je 0x4c4161
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.004c4883
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.004c54f9
test al, al
je 0x4c41cb
cmp dword [ebp - 0x10], ebx
je 0x4c41cb
mov ebx, dword [esi + 0x3c]
xor edi, edi
test ebx, ebx
jle 0x4c41bc
mov eax, edi
lea ecx, [esi + 0x38]
call fcn.0045d61b
mov ecx, dword [ebp - 0x10]
cmp dword [eax], ecx
je 0x4c41b3
inc edi
cmp edi, ebx
jl 0x4c419b
jmp 0x4c41bc
push edi
lea eax, [esi + 0x38]
call fcn.004c3bc1
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x50]
push eax
call fcn.004c557b
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4c4206
push dword [ebp + 8]
lea edi, [ebp + 8]
call fcn.00403098
mov eax, edi
push eax
lea edi, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.0040f01a
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c4206
push eax
call fcn.004013b2
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp eax, ebx
pop edi
je 0x4c4218
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c422c
push eax
call fcn.004013b2
cmp dword [ebp + 0xc], ebx
je 0x4c423e
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 0x4c4417
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x4efbc1
call fcn.004ebd20
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 0x4c443e
lea eax, [ebx + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x14]
cmp dword [eax - 8], edi
je 0x4c447a
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 0x4c447a
mov eax, dword [esi]
cmp dword [eax - 8], edi
je 0x4c447a
push 1
push edi
push edi
push ecx
mov ecx, esi
mov esi, esp
mov dword [ebp - 0x10], esp
call fcn.0040306f
mov ecx, ebx
call fcn.004c4417
mov eax, dword [ebx + 0x14]
cmp dword [eax - 8], edi
je 0x4c448d
mov eax, dword [ebx + 8]
or eax, dword [ebx + 0xc]
jne 0x4c448d
mov dword [ebp + 0xc], edi
cmp dword [ebp + 0x10], edi
jne 0x4c4495
mov dword [ebp + 0xc], edi
cmp dword [ebp + 0xc], edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x4c44ef
push dword [ebp + 0x10]
lea edi, [ebp + 0x10]
call fcn.00403098
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 0x4c44d3
push dword [ebx + 0x18]
mov eax, dword [ebx + 0x20]
push eax
push edi
call fcn.004c4913
add edi, 0xfffffff4
mov byte [ebp - 4], 0
cmp edi, dword [0x51b43c]
je 0x4c44e8
push edi
call fcn.004013b2
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x4c4506
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4c4506
lea eax, [ebp + 8]
push eax
lea edi, [ebx + 0x24]
call fcn.0040f01a
xor edi, edi
mov eax, dword [ebx + 0x14]
cmp dword [eax - 8], edi
je 0x4c4521
lea eax, [ebx + 0x1c]
call fcn.004030ee
lea eax, [ebx + 0x20]
call fcn.004030ee
mov dword [ebx + 0x18], edi
cmp dword [ebp + 0x14], edi
je 0x4c4533
add ebx, 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c4547
push eax
call fcn.004013b2
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 0x4c5cd7
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x4efad2
call fcn.004ebd20
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x18], 0
jne 0x4c5d9e
push dword [ebp + 8]
call fcn.00499a74
test eax, eax
pop ecx
je 0x4c5d9e
mov eax, dword [0x51b438]
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.00499acf
add esp, 0xc
test eax, eax
je 0x4c5d76
mov esi, dword [ebp - 0x14]
lea ebx, [edi + 0x20]
push esi
mov ecx, ebx
call fcn.0045f9df
test eax, eax
jne 0x4c5d59
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c5d54
push eax
call fcn.004013b2
lea eax, [esi - 0xc]
jmp 0x4c5d90
push ecx
lea ecx, [ebp - 0x10]
mov esi, esp
mov dword [ebp - 0x18], esp
call fcn.0040306f
push ebx
call fcn.004c5b13
xor esi, esi
cmp eax, esi
mov dword [edi + 0xc], eax
jne 0x4c5da5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c5d8a
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c5d9e
push eax
call fcn.004013b2
xor eax, eax
jmp 0x4c5e5b
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 0x4c5dfa
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c5ddf
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c5df3
push eax
call fcn.004013b2
mov eax, 0x8007000e
jmp 0x4c5e5b
push dword [ebp + 8]
lea eax, [edi + 0x1c]
call fcn.0040315f
mov dword [edi + 8], esi
mov ecx, dword [ebx]
cmp ecx, esi
je 0x4c5e19
mov eax, dword [ecx]
push edi
push 0x4c5e6c
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 0x4c5e34
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 [0x51b43c]
je 0x4c5e45
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c5e59
push eax
call fcn.004013b2
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4c6300
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x4ee22c
call fcn.004ebd20
push esi
mov esi, dword [ebp + 8]
mov dword [esi], 0x503f6c
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.0041d445
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 0x4c92c3
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4efa9e
call fcn.004ebd20
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], 0x503410
push edi
lea eax, [esi + 8]
mov dword [esi], 0x504248
mov dword [esi + 4], 0x504228
call fcn.004c1525
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [0x51b438]
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.0041d445
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 0x4cb04c
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov eax, 0x2494
lea ebp, [esp - 0x2414]
call fcn.004ebd80
mov eax, dword [0x517ad4]
push ebx
xor eax, ebp
push esi
mov esi, edi
mov dword [ebp + 0x2410], eax
call fcn.004cb1c6
mov ebx, 0x10000000
push ebx
push 0
lea esi, [ebp - 0x78]
call fcn.0041e202
mov eax, dword [edi + 0x80]
mov eax, dword [eax + 8]
push ebx
push eax
mov eax, esi
call fcn.0041e263
test eax, eax
je 0x4cb1ad
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 0x4cb1ad
lea eax, [ebp - 0x80]
push eax
mov eax, esi
call fcn.0041e2cb
mov esi, eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
call fcn.0041e32f
mov esi, dword [esi]
mov eax, dword [eax]
push edi
push 0x80400200
push ebx
push esi
push ebx
push eax
push 0x4fca7c
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 [0x51b43c]
je 0x4cb110
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4cb124
push eax
call fcn.004013b2
cmp dword [edi + 0x74], ebx
je 0x4cb1ad
mov eax, dword [edi + 0x68]
cmp eax, ebx
mov esi, dword [0x51b438]
mov dword [ebp - 0x7c], esi
jbe 0x4cb152
push eax
lea eax, [ebp - 0x7c]
push str.Range:_bytes_u__r_n
push eax
call fcn.00405b51
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 0x4cb17c
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x4cb177
push eax
call fcn.004013b2
push 2
pop eax
jmp 0x4cb1af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
lea eax, [esi - 0xc]
jne 0x4cb19f
cmp eax, dword [0x51b43c]
je 0x4cb19a
push eax
call fcn.004013b2
xor eax, eax
inc eax
jmp 0x4cb1af
cmp eax, dword [0x51b43c]
je 0x4cb1ad
push eax
call fcn.004013b2
xor eax, eax
mov ecx, dword [ebp + 0x2410]
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0x2414
leave
ret
Function at 0x4cc281
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 0x4cc297
call fcn.004cc3da
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x4cc3a1
cmp dword [eax], 0x18
jne 0x4cc3a1
push edi
push dword [eax + 8]
lea edi, [ebp - 4]
call fcn.00403098
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 4]
cmp ecx, ebx
jne 0x4cc2cf
push 0x10000000
push ebx
push ebx
push 1
jmp 0x4cc37e
cmp ecx, 1
je 0x4cc376
mov ecx, dword [ebp - 4]
cmp dword [ecx - 8], ebx
je 0x4cc376
push dword [eax + 0x10]
lea edi, [ebp - 0x10]
call fcn.00403098
mov eax, dword [esi + 0x40]
push dword [eax + 0x14]
lea edi, [ebp - 0xc]
call fcn.00403098
mov eax, dword [0x51b438]
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.00405b51
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 [0x51b43c]
je 0x4cc34c
push eax
call fcn.004013b2
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4cc360
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4cc38a
push eax
call fcn.004013b2
jmp 0x4cc38a
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 [0x51b43c]
pop edi
je 0x4cc3b5
push eax
call fcn.004013b2
jmp 0x4cc3b5
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 0x4cc3c0
xor eax, eax
jmp 0x4cc3d4
push 0x4cafcf
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 0x4cc3ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x4cc410
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 8]
cmp eax, edi
je 0x4cc405
mov dword [eax], edi
mov ecx, dword [esi + 0x60]
push 2
pop eax
mov dword [ecx + 0xc], eax
jmp 0x4cc461
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 0x4cc446
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 0x4cc44c
mov eax, dword [esi + 0x60]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 8]
cmp eax, edi
je 0x4cc45b
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 0x4cc53d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, eax
mov esi, edi
call fcn.004cbfef
test eax, eax
je 0x4cc5d7
push ebx
call fcn.004cc028
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x4cc56c
call ebx
sub eax, dword [edi + 0x68]
cmp eax, 0x4e20
jae 0x4cc591
mov eax, edi
call fcn.004cc50f
push 0
call fcn.004cbf77
lea esi, [edi + 0xe4]
call fcn.00492392
mov eax, edi
call fcn.004cc466
cmp eax, 2
je 0x4cc5d6
mov eax, dword [esp + 0x10]
add eax, 0x34
lea esi, [edi + 0x34]
call fcn.004cab54
call ebx
sub eax, dword [edi + 0x68]
xor esi, esi
inc esi
cmp eax, esi
jae 0x4cc5b0
mov eax, esi
jmp 0x4cc5b5
call ebx
sub eax, dword [edi + 0x68]
and dword [edi + 0x68], 0
mov dword [edi + 0x64], eax
mov eax, edi
call fcn.004cc50f
mov eax, dword [edi + 0x74]
test eax, eax
mov dword [edi + 0x20], esi
je 0x4cc5d6
push dword [edi + 0x70]
push 0
push 3
call eax
pop ebx
pop edi
pop esi
ret 4
Function at 0x4ccabe
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x4f4de0
call fcn.004ebd20
sub esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x4cccb2
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 0x4ccc89
push dword [edi + 0x1c]
mov esi, ebx
call fcn.004cc094
test eax, eax
jne 0x4ccb54
mov dword [edi + 0xc], 0x50004
mov edi, dword [ebp + 8]
call fcn.004caecf
mov edi, ebx
call fcn.004cbdf1
mov esi, eax
test esi, esi
je 0x4ccb45
push dword [ebx + 0x40]
push dword [ebp - 0x18]
push esi
push dword [ebx + 0x78]
push dword [ebp + 8]
call fcn.004cae2f
cmp dword [esi + 0xc], 0
jne 0x4cccb0
mov dword [esi + 0xc], 2
jmp 0x4cccb0
push dword [ebp + 8]
mov eax, ebx
call fcn.004cc53d
jmp 0x4cccb0
mov ecx, dword [edi + 0x1c]
lea eax, [ebx + 0xa4]
mov dword [ebx + 0x54], ecx
cmp dword [eax + 4], 0
ja 0x4ccb70
push 0x80070057
call fcn.004010d2
mov eax, dword [eax]
mov eax, dword [eax]
push ecx
call fcn.004caa37
mov eax, dword [ebp + 8]
add eax, 0x34
lea esi, [ebx + 0x34]
call fcn.004cab54
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 0x4ccba1
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.0040306f
and dword [ebp - 4], 0
push 0x50079c
mov eax, esi
call fcn.004107a6
xor ecx, ecx
mov esi, eax
call fcn.004107c0
test eax, eax
jle 0x4ccbd9
lea eax, [ebp - 0x14]
call fcn.004030ee
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.004ca5ac
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.004cc0d5
neg eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
sbb al, al
inc al
add ecx, 0xfffffff4
cmp ecx, dword [0x51b43c]
mov byte [ebp - 0xd], al
je 0x4ccc1f
push ecx
call fcn.004013b2
mov al, byte [ebp - 0xd]
test al, al
je 0x4ccc57
mov eax, ebx
call fcn.004cc50f
mov eax, dword [ebx + 0x74]
test eax, eax
mov dword [ebx + 0x20], 1
je 0x4ccc41
push dword [ebx + 0x70]
push 0
push 3
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4cccb0
push eax
call fcn.004013b2
jmp 0x4cccb0
mov eax, dword [ebx + 0x74]
test eax, eax
mov dword [ebx + 0x20], 3
je 0x4ccc6e
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 [0x51b43c]
je 0x4ccc86
push eax
call fcn.004013b2
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x54]
cmp ecx, dword [edi + 0x1c]
jne 0x4ccca2
mov dword [edi + 0xc], 0x10004
push dword [ebx + 0x48]
call fcn.004cafad
jmp 0x4cccb0
mov dword [edi + 0xc], 0x50004
mov edi, eax
call fcn.004caecf
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4d0608
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp word [0x521ef8], ax
push esi
mov esi, 0x521ef8
jne 0x4d063b
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 0x4d0654
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4d0654
and al, 0x10
xor ecx, ecx
cmp al, 0x10
setne cl
mov eax, ecx
jmp 0x4d0656
xor eax, eax
pop esi
leave
ret

Function at 0x4d1ccb
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 0x4d1cf2
cmp word [eax], 1
jne 0x4d1cf2
test cx, cx
jne 0x4d1cf2
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.004b6405
push 0xc
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
call fcn.004be312
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.004b6405
push 8
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.004be312
pop esi
pop ebx
leave
ret
Function at 0x4d3deb
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x517ad4]
push ebx
xor eax, ebp
xor ebx, ebx
cmp dword [0x52210c], ebx
mov dword [ebp + 0x1e4], eax
je 0x4d3f6d
mov eax, dword [0x522108]
cmp eax, ebx
je 0x4d3f6d
call eax
movzx ecx, ah
cmp ecx, 1
je 0x4d3e34
cmp ecx, 0xe8
jne 0x4d3e3e
movzx eax, al
cmp eax, ebx
mov dword [ebp - 0x80], eax
jne 0x4d3e45
xor eax, eax
jmp 0x4d3f7b
mov dword [ebp - 0x6c], ebx
push esi
lea esi, [ebx + 0x41]
movzx eax, si
push eax
lea eax, [ebp - 0x24]
push 0x504b20
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x4d3e85
mov eax, dword [ebp + 0x1f0]
or esi, 0x20
or eax, 0x20
cmp si, ax
je 0x4d3e8b
inc dword [ebp - 0x6c]
inc ebx
cmp ebx, 0x1a
jl 0x4d3e49
xor ebx, ebx
cmp dword [ebp - 0x80], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
jle 0x4d3f58
push 0x3c
lea eax, [ebp - 0x60]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x5e], bl
call dword [0x52210c]
add esp, 0x10
cmp byte [ebp - 0x5f], 1
jne 0x4d3f48
movzx esi, byte [ebp - 0x33]
test esi, esi
jne 0x4d3ed2
push 8
pop esi
and dword [ebp - 0x64], 0
test esi, esi
jle 0x4d3f48
xor ebx, ebx
push 0xc
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov al, byte [ebp - 0x68]
mov byte [ebp - 0x7a], al
mov al, byte [ebp - 0x64]
mov byte [ebp - 0x74], al
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 0x7c], 1
mov byte [ebp - 0x73], bl
call dword [0x52210c]
add esp, 0x10
cmp byte [ebp - 0x7b], 1
jne 0x4d3f20
cmp byte [ebp - 0x72], 5
jne 0x4d3f20
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
je 0x4d3f28
inc dword [ebp - 0x70]
inc ebx
cmp ebx, 8
jl 0x4d3edc
jmp 0x4d3f40
mov al, byte [ebp - 0x7a]
mov byte [edi + 4], al
mov al, byte [ebp - 0x74]
mov byte [edi + 6], al
mov al, byte [ebp - 0x73]
mov dword [edi], 8
mov byte [edi + 7], al
inc dword [ebp - 0x64]
cmp dword [ebp - 0x64], esi
jl 0x4d3eda
mov ebx, dword [ebp - 0x68]
inc ebx
cmp ebx, dword [ebp - 0x80]
mov dword [ebp - 0x68], ebx
jl 0x4d3e9c
mov ax, word [ebp + 0x1f0]
or dword [edi + 0xc], 0xffffffff
mov word [edi + 8], ax
xor eax, eax
inc eax
pop esi
jmp 0x4d3f7b
push dword [ebp + 0x1f0]
mov ebx, edi
call fcn.004d3b52
pop ecx
mov ecx, dword [ebp + 0x1e4]
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0x1e8
leave
ret
Function at 0x4dca6d
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 0x4dca87
mov byte [ebp + 0x10], 1
cmp byte [ebp + 0x14], bl
mov dword [ebp - 4], SysReAllocStringLen
je 0x4dca9a
mov dword [ebp - 4], 0xc0000000
cmp byte [ebp + 0x10], bl
mov dword [ebp + 0x14], 1
je 0x4dcaad
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.004e5cac
test eax, eax
je 0x4dcae9
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4dcae9
cmp word [eax], bx
je 0x4dcae9
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 0x4dcafd
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 0x4dcb19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4dcb19
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 0x4dcb80
cmp dword [ebp + 0xc], ebx
mov dword [esi + 4], edi
je 0x4dcb49
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.004df1ee
pop ecx
pop ecx
jmp 0x4dcb50
mov word [esi + 0x418], bx
cmp dword [ebp + 8], ebx
lea eax, [esi + 0x17]
je 0x4dcb65
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x4dcb76
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.004defc4
add esp, 0xc
push dword [esi + 4]
mov ecx, esi
call fcn.004dc779
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4dcc89
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 0x4dccaf
cmp dword [ebp + 0xc], esi
jbe 0x4dcca4
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 0x4dccff
mov ecx, edi
call fcn.004dc9f6
test al, al
je 0x4dcce5
cmp dword [ebp + 0xc], esi
jbe 0x4dcce5
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004dcc89
jmp 0x4dcd02
cmp dword [edi + 0xc], 1
jne 0x4dccfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4dccfa
xor eax, eax
jmp 0x4dcd02
or eax, 0xffffffff
jmp 0x4dcd02
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8