joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47dce0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
mov eax, dword [0x542040]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
mov eax, ecx
push esi
push edi
mov dword [esp + 0x1c], eax
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
test eax, eax
jne 0x47dd22
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
jmp 0x47dda1
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x47dd0f
push 0x424
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004ded20
add esp, 0xc
mov dword [esp + 0x20], 0x428
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x47dd92
mov edi, dword [sym.imp.KERNEL32.dll_Module32NextW]
nop dword [eax]
lea eax, [esp + 0x40]
push str.user32.dll
push eax
call fcn.004f276a
add esp, 8
test eax, eax
je 0x47ddc4
lea eax, [esp + 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x47dd70
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, dword [esp + 0x20]
push edi
push ebx
call fcn.0047ddd0
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x34]
cdq
mov ebx, eax
mov edi, edx
jmp 0x47dd9a
Function at 0x480220
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov esi, edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x480320
mov eax, edi
or eax, ecx
je 0x480320
test esi, esi
je 0x480320
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x480333
push str.NtWow64ReadVirtualMemory64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
test eax, eax
jne 0x4802f7
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, eax
test esi, esi
jne 0x48030d
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x48030d
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
mov ecx, 1
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
cmovne esi, ecx
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
push 0
push dword [ebp + 0x10]
push esi
push dword [ebp - 8]
push edi
push ebx
call eax
neg eax
sbb esi, esi
inc esi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
push 0
push 0
call fcn.004dee7a
int3
Function at 0x481260
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x5c], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x44]
mov dword [ebp - 0x68], ecx
cmp edx, 0x4e
ja 0x481477
je 0x48140e
lea ecx, [edx - 3]
cmp ecx, 0x29
mov ecx, dword [ebp - 0x68]
ja 0x481b75
movzx eax, byte [edx + 0x481bad]
jmp dword [eax*4 + 0x481b9c]
test ecx, ecx
je 0x48144b
push eax
push esi
push edi
push dword [ebp - 0x60]
push edx
push ebx
call ecx
mov ebx, dword [ebp - 0x5c]
add esp, 0x18
mov dword [ebp - 0x74], eax
cmp dword [ebx], 0
je 0x48144d
cmp dword [edi + 8], 0xfffffff4
jne 0x48145a
mov ecx, edi
call fcn.00481230
mov eax, dword [ebp - 0x74]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
mov ebx, eax
cmp dword [edi + 8], 0xfffffff4
jne 0x48145a
mov ecx, edi
call fcn.00481230
push ebx
push esi
push edi
push ecx
call fcn.00481d70
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
lea ecx, [edx - 0x82]
cmp ecx, 0xb6
mov ecx, dword [ebp - 0x68]
ja 0x481b75
movzx eax, byte [edx + 0x481b6e]
jmp dword [eax*4 + 0x481bdc]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x481519
push eax
push esi
push edi
push dword [ebp - 0x60]
push edx
push ebx
call ecx
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004dadd7
mov esp, ebp
pop ebp
ret

Function at 0x482720
Capabilities:
Hash data using fnv

Disassembly:
mov edx, ecx
jmp 0x482730
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
ret
Function at 0x483e50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x53d9f8
push 0x4de750
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x542040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x34], edx
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
test ebx, ebx
je 0x483fbe
test edx, edx
je 0x483fbe
test eax, eax
jle 0x483fbe
add eax, 0x18
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x5371e0]
cvttsd2si eax, xmm0
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
comisd xmm0, xmmword [0x5371d0]
jbe 0x483edd
inc eax
shl eax, 0xc
mov ecx, 0x1000
cmp eax, ecx
cmovge ecx, eax
mov dword [ebp - 0x30], 0
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
wait
mov dword [ebp - 4], esi
push 0x40
push 0x3000
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x483f84
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edi]
mov dword [ebp - 0x24], ecx
push esi
push eax
push dword [ebp - 0x34]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x483f84
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x483f49
push esi
push 0x18
push eax
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x483f84
push ecx
push dword [ebp - 0x24]
mov edx, edi
mov ecx, ebx
call fcn.00483fe0
add esp, 8
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x483f84
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
wait
mov dword [ebp - 4], 0xfffffffe
call fcn.00483f9f
mov eax, dword [ebp - 0x30]
jmp 0x483fc0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
Function at 0x483fe0
Capabilities:
Acquire debug privileges
Check os version
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push esi
push edi
push pe_nt_image_headers32
push 0
push eax
mov edi, edx
mov dword [ebp - 0x134], 0
mov esi, ecx
call fcn.004ded20
add esp, 0xc
mov dword [ebp - 0x130], 0x114
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x12c], 6
jb 0x484157
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x54b800]
cmp eax, dword [ecx + 4]
jle 0x48411a
push 0x54b800
call fcn.004daea0
add esp, 4
cmp dword [0x54b800], 0xffffffff
jne 0x48411a
cmp dword [0x54ad0c], 0
jne 0x4840f7
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x54ad0c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x138]
push eax
push 0x28
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4840f7
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x138]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.NtCreateThreadEx
push dword [0x54ad0c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54b800
mov dword [0x54d814], eax
call fcn.004dae4f
add esp, 4
mov eax, dword [0x54d814]
test eax, eax
je 0x484140
push 0
push 0
push 0
push 0
push 0
push ebx
push edi
push esi
push 0
push 0x1fffff
lea ecx, [ebp - 0x134]
push ecx
call eax
mov eax, dword [ebp - 0x134]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
Function at 0x48f610
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push eax
push str.005E7DF6__04d_4146__X_AD15417DE176
lea eax, [ebp - 0xcc]
push 0x64
push eax
call fcn.00407ae0
add esp, 0x14
lea eax, [ebp - 0xcc]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0xd0], eax
test eax, eax
jne 0x48f673
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x48f69b
push esi
mov ecx, 0x30
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop esi
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
test ebx, ebx
pop ebx
setne al
xor ecx, ebp
pop edi
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
Function at 0x493560
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x542040]
xor eax, esp
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], ecx
push ebx
mov ebx, dword [ecx + 0x10]
mov dword [esp + 8], ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x24], esi
push edi
cmp eax, 3
jne 0x493665
mov edi, dword [ecx + 0x24]
mov eax, 0x66666667
mov ecx, dword [esi + 0x2c]
sub ecx, dword [esi + 0x28]
imul ecx
mov dword [esp + 0x18], edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jge 0x49366d
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_GetBkColor]
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_GetTextColor]
push 2
push dword [esp + 0x14]
mov ebx, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x14]
lea esi, [ecx + edx*8]
add eax, 0x14
lea ecx, [esi + 0x1c]
push ecx
push dword [esi + 0xc]
mov ecx, dword [esp + 0x30]
push eax
push dword [esp + 0x1c]
add ecx, 0x374
call fcn.00490460
mov ecx, dword [esp + 0x28]
push edi
push dword [esp + 0x14]
mov eax, dword [ecx + 0x3b4]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 0x3b8]
mov dword [esi + 0x24], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
push dword [esp + 0x20]
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov esi, dword [esp + 0x28]
jmp 0x49366d
test eax, eax
jle 0x49373f
mov edi, dword [esi + 0x324]
lea edx, [edi + 1]
movzx eax, dl
xor eax, 0x811c9dc5
mov dword [esp + 0x28], edx
imul ecx, eax, 0x1000193
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, edx
shr eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
shr edx, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, 0x54a5dc
xor eax, edx
imul eax, eax, 0x1000193
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040b610
mov esi, dword [0x54a5e0]
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
cmp esi, dword [0x54a5e0]
je 0x4936e3
mov esi, dword [esi + 0xc]
jmp 0x493709
push edi
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov esi, eax
mov ecx, 0x54a5dc
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00425740
mov ecx, dword [eax]
mov dword [ecx + 0xc], esi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push esi
push ebx
call edi
mov ecx, dword [esp + 0x14]
mov esi, eax
push 0
push dword [ecx + 0x18]
push dword [ecx + 0x14]
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x14]
add eax, 0x14
push dword [eax + 0xc]
push dword [eax]
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
push esi
push ebx
call edi
mov ecx, dword [esp + 0x2c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret 0x14
Function at 0x495400
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x495477
test edx, edx
jg 0x495421
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x495412
sub edx, ecx
sar edx, 1
lea ebx, [edx*2 + 2]
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x495477
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x495471
push ebx
push edi
push eax
call fcn.004def30
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov al, 1
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x4dbae8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4dbb27
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4dbb27
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4dbb27
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4dbb27
cmp dword [ecx + 0x74], 0xe
jbe 0x4dbb27
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4dd118
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4dd139
jl 0x4dd130
test edi, edi
jne 0x4dd139
xor eax, eax
xor edx, edx
jmp 0x4dd1fa
cmp dword [ebx + 0x38], 0
je 0x4dd14e
push eax
push edi
push dword [ebp + 8]
call fcn.004dd200
jmp 0x4dd1fa
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4dd195
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4dd195
cmp eax, edi
jb 0x4dd16f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004def30
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4dd19b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4dd1ef
mov ecx, ebx
call fcn.004dc975
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4dd1da
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004f08fe
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4dd1ef
jmp 0x4dd1ad
test edx, edx
je 0x4dd1ef
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004f08fe
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4eff09
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00507770
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004f90b9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4eff4b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f00a7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005076c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x547a48]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004f9653
mov ecx, dword [esi*4 + 0x547a48]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4f00a0
cmp eax, dword [ecx + edi + 0x24]
jne 0x4f00a0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f00a0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f9653
add esp, 0x14
test edx, edx
jl 0x4f00a0
jg 0x4f0016
test eax, eax
jb 0x4f00a0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f00a0
jl 0x4f0030
cmp dword [ebp - 0x1008], eax
ja 0x4f00a0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f004e
test ebx, ebx
je 0x4f0087
cmp ecx, edi
jae 0x4f0087
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f0068
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f0074
cmp byte [ecx + 1], 0xa
jne 0x4f0074
inc ecx
jmp 0x4f0074
movzx eax, al
movsx eax, byte [eax + 0x542300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f004e
cmp edx, ebx
jne 0x4f004e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f00a5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004dadd7
leave
ret
Function at 0x4f96cf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x547a48]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f970f
cmp byte [ebx], 0xa
jne 0x4f970f
or byte [edi + eax + 0x28], 4
jmp 0x4f9714
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4f9813
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4f97f6
inc eax
cmp dl, 0xd
je 0x4f9740
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4f9766
cmp eax, ecx
jae 0x4f9774
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4f9728
jmp 0x4f9813
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f97f1
cmp dword [ebp - 0x10], 0
je 0x4f97f1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x547a48]
test byte [eax + edi + 0x28], 0x48
je 0x4f97cb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f97b6
mov byte [esi], dl
jmp 0x4f97c7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x547a48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f9813
cmp byte [ebp - 1], 0xa
jne 0x4f97da
cmp esi, ebx
jne 0x4f97da
mov byte [esi], 0xa
jmp 0x4f9812
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004f9671
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f9813
mov byte [esi], 0xd
jmp 0x4f9812
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x547a48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f9810
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f9813
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret