joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1590
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov edi, ecx
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
test esi, esi
jg 0x4d15d0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x4d15c7
mov esi, 1
jmp 0x4d15d0
jle 0x4d1616
nop dword [eax]
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x4d04a0
push 0
push 0
call fcn.0050ec18
add esp, 0x18
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4d1611
cmp eax, 0xffffffff
je 0x4d1611
mov edx, dword [edi + 8]
lea ecx, [edi + 4]
cmp dword [ecx + 8], edx
je 0x4d1607
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x4d1611
lea eax, [ebp + 0xc]
push eax
push edx
call fcn.004cf220
sub esi, 1
jne 0x4d15d0
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4d16c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4d175a
push esi
lea eax, [ebp - 0x18]
push eax
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4d1756
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4d174b
mov eax, dword [ebp - 0x20]
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4d1751
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call esi
push edi
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004fbc95
mov esp, ebp
pop ebp
ret
Function at 0x4d1ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x580070]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [0x58006c]
mov dword [ebp - 4], 0
test byte [esi + 0x12], 1
mov dword [ebp - 0x10], eax
je 0x4d1f0e
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 8], ecx
lea ebx, [edi + 0x16]
lea eax, [ebx + 0x10]
mov dword [ebp - 0xc], eax
cmp ecx, dword [0x58ae88]
jb 0x4d1f3f
ja 0x4d1f33
cmp eax, dword [0x58ae84]
jbe 0x4d1f3f
pop edi
pop ebx
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x580078], 0xffffffff
jne 0x4d1f54
pop edi
pop ebx
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret
push 0x58acd0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x58ae7c]
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], ebx
movups xmm0, xmmword [esi]
movups xmmword [ecx + 0x10], xmm0
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x20], eax
mov ax, word [esi + 0x14]
mov word [ecx + 0x24], ax
lea eax, [ecx + 0x26]
push eax
call fcn.004fe150
mov eax, dword [0x580070]
add esp, 0xc
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
push eax
push 0
push 8
lea eax, [ebp - 0xc]
push eax
push dword [0x580078]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4d1ff7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4d1ff7
push 0x58acd0
mov esi, 0xfffffffc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4d201c
push eax
push dword [0x58006c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4d203f
push dword [0x580078]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x58acd0
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [0x580078]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4d2028
mov esi, dword [ebp - 4]
neg esi
push 0x58acd0
sbb esi, esi
neg esi
dec esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d2080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x580070]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x58006c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xc]
add eax, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [0x58ae88]
jb 0x4d20cb
ja 0x4d20c1
cmp eax, dword [0x58ae84]
jbe 0x4d20cb
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x580078], 0xffffffff
jne 0x4d20de
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret
push 0x58acd0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0xc]
push esi
push dword [0x58ae7c]
call fcn.004fe150
mov eax, dword [0x580070]
add esp, 0xc
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
push eax
push 0
push 8
lea eax, [ebp - 0xc]
push eax
push dword [0x580078]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4d2150
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4d2150
push 0x58acd0
mov esi, 0xfffffffc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4d2175
push eax
push dword [0x58006c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4d2196
push dword [0x580078]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x58acd0
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [0x580078]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4d2181
mov esi, dword [ebp - 4]
neg esi
push 0x58acd0
sbb esi, esi
neg esi
dec esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d3c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525b2f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x218
call fcn.004fbcb4
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x4d3c9c
push 0x28
mov dword [esi], vtable.ProtocolFilters::MFStream.0
mov dword [esi + 4], 0
mov byte [esi + 0xc], 0
call fcn.004fbcb4
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4d3c74
mov ecx, eax
call fcn.004df9d0
mov edi, eax
jmp 0x4d3c76
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4d3c94
mov ecx, edi
call fcn.004dfb10
test al, al
jne 0x4d3cb9
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], edi
xor eax, eax
mov dword [esi + 8], 0x800000
lea edi, [esi + 0xe]
mov word [edi], ax
lea eax, [ebp - 0x28]
push eax
call fcn.004ddcc0
mov ecx, eax
call fcn.004ddd60
cmp dword [ebp - 0x18], 0
je 0x4d3d0c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x52bc28
push 0x104
push edi
call fcn.004d41a0
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.004c33b0
mov eax, esi
jmp 0x4d3c9e
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x28]
call fcn.004c33b0
mov eax, esi
jmp 0x4d3c9e
Function at 0x4d3d40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525b6f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4d3d80
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 4], 0
mov ebx, 0x6400000
cmp dword [ebp + 0xc], ebx
push 0x28
cmovbe ebx, dword [ebp + 0xc]
call fcn.004fbcb4
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4d3daf
mov ecx, eax
call fcn.004df9d0
mov esi, eax
jmp 0x4d3db1
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4d3dcf
mov ecx, esi
call fcn.004dfb10
test al, al
jne 0x4d3dd6
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor al, al
jmp 0x4d3e76
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [edi + 4], esi
lea esi, [edi + 0xe]
mov dword [edi + 8], ebx
mov word [esi], ax
test ecx, ecx
je 0x4d3e24
mov edx, ecx
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4d3df0
sub edx, ebx
sar edx, 1
cmp edx, 0x104
ja 0x4d3e29
mov edx, esi
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4d3e10
movzx eax, word [edi + 0xe]
test ax, ax
jne 0x4d3e74
lea eax, [ebp - 0x28]
push eax
call fcn.004ddcc0
mov ecx, eax
call fcn.004ddd60
cmp dword [ebp - 0x18], 0
je 0x4d3e60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x52bc28
push 0x104
push esi
call fcn.004d41a0
add esp, 0x10
jmp 0x4d3e6c
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x28]
call fcn.004c33b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret 8
Function at 0x4d4000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525be2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
test ecx, ecx
jne 0x4d4047
xor eax, eax
jmp 0x4d40ed
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
mov edi, eax
mov dword [ebp - 0x220], edi
test edi, edi
je 0x4d4040
cmp byte [esi + 0xc], 0
jne 0x4d40eb
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test edx, edx
jb 0x4d40eb
ja 0x4d407b
cmp eax, dword [esi + 8]
jbe 0x4d40eb
lea eax, [ebp - 0x218]
push eax
push 0
push 0x52bc30
lea eax, [esi + 0xe]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4d40eb
push 8
call fcn.004fbcb4
add esp, 4
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4d40bd
mov ecx, eax
call fcn.004dfcd0
mov ebx, eax
jmp 0x4d40bf
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4d40eb
push 0x4000100
push 2
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.004dfeb0
push 1
test al, al
jne 0x4d410b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
push 0
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, dword [esi + 4]
push ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], edx
mov esi, dword [ecx]
mov esi, dword [esi + 0x18]
call esi
mov ecx, dword [ebp - 0x21c]
mov edi, eax
mov dword [ebp - 0x228], edx
mov ecx, dword [ecx + 4]
mov esi, dword [ecx]
mov esi, dword [esi + 0x14]
call esi
cmp edi, eax
jne 0x4d4189
cmp dword [ebp - 0x228], edx
jne 0x4d4189
mov esi, dword [ebp - 0x21c]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebp - 0x22c]
mov dword [esi + 4], ebx
mov ecx, ebx
mov eax, dword [ebx]
push dword [ebp - 0x224]
call dword [eax + 8]
mov edi, dword [ebp - 0x220]
mov byte [esi + 0xc], 1
jmp 0x4d40eb
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov eax, dword [ebp - 0x220]
jmp 0x4d40ed
Function at 0x4d8a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x20]
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x40], vtable.ProtocolFilters::AutoLock.0
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.004dcd10
cmp dword [esi + 0x10], 0
mov byte [ebp - 4], 1
jne 0x4d8aeb
xor bl, bl
jmp 0x4d8ba7
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004d9c40
mov eax, dword [eax]
cmp eax, dword [ebx]
jne 0x4d8ba5
cmp dword [ebx + 0x1c], 8
lea esi, [ebx + 8]
mov eax, esi
jb 0x4d8b11
mov eax, dword [esi]
push 0x52bc94
push eax
call fcn.0050a7e8
mov edi, eax
add esp, 8
test edi, edi
jne 0x4d8b45
cmp dword [esi + 0x14], 8
jb 0x4d8b2d
mov esi, dword [esi]
push 0x52bc9c
push esi
call fcn.0050a7e8
mov edi, eax
add esp, 8
test edi, edi
jne 0x4d8b45
xor bl, bl
jmp 0x4d8ba7
push 2
push 0
push edi
call fcn.0050ac0d
mov eax, dword [ebp - 0x2c]
push edi
push 4
push 1
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.0050be9b
add esp, 0x1c
cmp eax, 4
jne 0x4d8b88
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.0050be9b
add esp, 0x10
push edi
call fcn.0050a8d3
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, ebx
push dword [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.004d6340
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4d8bd7
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d8bcd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8c12
push edx
push ecx
call fcn.004fbca6
add esp, 8
push dword [ebp - 0x3c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret 4
call fcn.00501cb1
int3
Function at 0x4d97c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526028
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x14]
push eax
mov dword [ebp - 0x44], vtable.ProtocolFilters::AutoLock.0
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.004dcd10
mov esi, dword [ebx]
mov edi, dword [esi + 4]
cmp byte [edi + 0xd], 0
jne 0x4d9844
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004d7280
test al, al
je 0x4d983a
mov edi, dword [edi + 8]
jmp 0x4d983e
mov esi, edi
mov edi, dword [edi]
cmp byte [edi + 0xd], 0
je 0x4d9822
mov edi, dword [ebx]
cmp esi, edi
je 0x4d985d
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004d7280
test al, al
je 0x4d985f
mov esi, edi
cmp esi, edi
je 0x4d98f3
push 0
push dword [esi + 0x28]
push dword [ebx + 0x10]
call fcn.0050ac0d
push dword [ebx + 0x10]
lea eax, [ebp - 0x38]
push 0x10
push 1
push eax
call fcn.0050b4f5
add esp, 0x1c
cmp eax, 0x10
jne 0x4d98f3
push 0
push dword [esi + 0x28]
push dword [ebx + 0x10]
call fcn.0050ac0d
push dword [ebx + 0x10]
xor eax, eax
push 0x10
mov word [ebp - 0x36], ax
lea eax, [ebp - 0x38]
push 1
push eax
call fcn.0050be9b
add esp, 0x1c
cmp eax, 0x10
jne 0x4d98f3
mov edi, dword [esi + 0x40]
test edi, edi
je 0x4d98d8
lea ecx, [edi + 0x18]
call fcn.004d4200
mov ecx, edi
call fcn.004d4200
push 0x30
push edi
call fcn.004fbca6
add esp, 8
push esi
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.004d9bb0
push dword [ebx + 0x10]
call fcn.0050ee39
add esp, 4
mov bl, 1
jmp 0x4d98f5
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4d9925
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d991b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d9960
push edx
push ecx
call fcn.004fbca6
add esp, 8
push dword [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret 4
call fcn.00501cb1
int3
Function at 0x4dc0e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x4dc103
mov eax, dword [eax]
push 0x52bca4
push eax
call fcn.0050a7e8
mov esi, eax
add esp, 8
test esi, esi
jne 0x4dc12b
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret 8
push 0
mov ecx, edi
call fcn.004d4460
push esi
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.0050b4f5
add esp, 0x10
test eax, eax
je 0x4dc17c
nop
push 1
push eax
lea eax, [ebp - 0x204]
mov ecx, edi
push eax
call fcn.004d4370
push esi
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.0050b4f5
add esp, 0x10
test eax, eax
jne 0x4dc150
push esi
call fcn.0050a8d3
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
call fcn.004fbc95
mov esp, ebp
pop ebp
ret 8
Function at 0x4dc4a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526460
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x44], vtable.ProtocolFilters::AutoLock.0
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call fcn.004d41d0
push esi
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.004dcd10
push eax
mov dword [ebp - 0x40], eax
mov ecx, edi
lea eax, [ebp - 0x3c]
push eax
call fcn.004dc0a0
mov ebx, dword [edi]
mov esi, dword [ebp - 0x3c]
cmp esi, ebx
je 0x4dc52d
lea eax, [esi + 0x10]
mov ecx, edi
push eax
push dword [ebp - 0x40]
call fcn.004d7280
test al, al
je 0x4dc52f
mov esi, ebx
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x4dc565
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4dc559
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4dc61d
push edx
push ecx
call fcn.004fbca6
mov ebx, dword [edi]
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp esi, ebx
je 0x4dc5e9
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
push 0
push dword [esi + 0x28]
push dword [edi + 0x10]
call fcn.0050ac0d
push dword [edi + 0x10]
lea eax, [ebp - 0x20]
push 0x10
push 1
push eax
call fcn.0050b4f5
add esp, 0x1c
cmp eax, 0x10
jne 0x4dc5e9
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
push dword [esi + 0x28]
push dword [edi + 0x10]
call fcn.0050ac0d
push dword [edi + 0x10]
lea eax, [ebp - 0x20]
push 0x10
push 1
push eax
call fcn.0050be9b
add esp, 0x1c
cmp eax, 0x10
jne 0x4dc5e9
push dword [edi + 0x10]
call fcn.0050ee39
add esp, 4
mov bl, 1
jmp 0x4dc5eb
xor bl, bl
lea ecx, [ebp - 0x5c]
call fcn.004d4200
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret 0xc
call fcn.00501cb1
int3