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

Disassembly:
sub esp, 0xc
cmp dword [ecx + 0x3208], 0
mov dword [esp + 4], ecx
jne 0x59fbf6
xor eax, eax
add esp, 0xc
ret
push edi
mov edi, dword [ecx + 0x3208]
cmp edi, 0x186a0
jbe 0x59fc0a
mov edi, 0x186a0
mov eax, dword [ecx + 0xc8]
mov ecx, dword [eax + 0x30]
push ebx
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x59fc4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x59fcd2
pop ebx
mov eax, 1
pop edi
add esp, 0xc
ret
push esi
push edi
call fcn.005f4e47
mov esi, eax
add esp, 4
test esi, esi
jne 0x59fc6d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, 0x753b
pop edi
add esp, 0xc
ret
push ebp
push 0
lea edx, [esp + 0x14]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop ebp
je 0x59fcbb
cmp dword [esp + 0xc], edi
jne 0x59fcbb
mov ecx, dword [esp + 0x10]
push edi
push esi
call fcn.0059e9b0
push esi
mov edi, eax
call fcn.005f4e52
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
add esp, 0xc
ret
push esi
call fcn.005f4e52
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x59fcd1
mov eax, 1
pop esi
pop ebx
pop edi
add esp, 0xc
ret
Function at 0x5a0680
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x6642f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov al, pe_nt_image_headers32
xor ebx, ebx
mov esi, ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x18], al
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], 0xb
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], 4
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], 0x1c
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], 3
mov byte [esp + 0x23], bl
call fcn.004024f0
mov dword [esp + 0x30], ebx
push str.954afa31_d601_4525_ae7f_57d44aeb4d34
lea ecx, [esp + 0x18]
call fcn.004030a0
mov byte [esp + 0x30], 1
lea eax, [esp + 0x14]
push eax
call fcn.0059d340
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.NSPlayer_9.0.0.2980___s__Host:__s
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x24]
add esp, 0x14
push edx
push 0xc
lea eax, [esp + 0x20]
push eax
push 1
mov ecx, esi
call fcn.0059d400
mov edi, eax
cmp edi, ebx
je 0x5a0772
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x14]
call fcn.00402560
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402560
mov eax, edi
jmp 0x5a07b0
push 0x17
lea ecx, [esi + 0x3234]
call fcn.005aa050
mov ecx, esi
call fcn.005624d0
mov dword [esi + 0xa4], 4
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x14]
call fcn.00402560
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402560
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00620b8d
add esp, 0x24
ret
Function at 0x5a1e90
Capabilities:
Create raw socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x664472
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.005b5050
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.MMSSession.0
lea ecx, [esi + 0x860]
call fcn.004024f0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x864]
call fcn.004024f0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x868]
call fcn.004024f0
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
mov dword [esi + 0x158], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov dword [esi + 0xfc], eax
mov ecx, dword [ebp + 0x18]
mov dword [esi + 8], ecx
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0xc], ebx
mov ecx, esi
call fcn.005b4960
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x24c], edx
mov dword [esi + 0x1c0], edi
mov dword [esi + 0x1c4], edi
mov byte [esi + 0x248], 0
mov dword [esi + 0x86c], edi
mov byte [esi + 0x870], 0
xor edx, edx
mov dword [ebp - 0x14], edx
cmp edx, 0x20
jge 0x5a204c
mov eax, edx
imul eax, eax, 0x32d8
mov ecx, dword [esi + 0x24c]
add ecx, eax
mov dword [ecx + 0xc8], ebx
mov ecx, dword [esi + 0x24c]
mov edi, dword [esi + 0x20]
mov dword [ecx + eax + 0xb4], edi
mov ecx, dword [esi + 0x24c]
mov edi, dword [esi + 8]
mov dword [ecx + eax + 0xc], edi
mov edi, dword [esi + 0x158]
mov ecx, dword [esi + 0x24c]
add ecx, eax
mov dword [ecx + 0x19c], edi
mov ecx, dword [esi + 0x24c]
add ecx, eax
mov dword [ecx + 0xa0], edx
lea ecx, [esi + 0x1c8]
mov edi, dword [esi + 0x24c]
mov dword [edi + eax + 0xac], ecx
lea ecx, [esi + 0x190]
mov edi, dword [esi + 0x24c]
mov dword [edi + eax + 0x100], ecx
lea ecx, [esi + 0x1f8]
mov edi, dword [esi + 0x24c]
mov dword [edi + eax + 0xb0], ecx
mov ecx, dword [esi + 0x24c]
mov dword [ecx + eax + 0x3244], esi
lea ecx, [esi + 0x10]
mov edi, dword [esi + 0x24c]
mov dword [edi + eax + 0xb8], ecx
lea ecx, [esi + 0x250]
mov edi, dword [esi + 0x24c]
mov dword [edi + eax + 0x104], ecx
lea ecx, [esi + 0x454]
mov edi, dword [esi + 0x24c]
mov dword [edi + eax + 0x108], ecx
lea ecx, [esi + 0x658]
mov edi, dword [esi + 0x24c]
mov dword [edi + eax + 0x10c], ecx
inc edx
xor edi, edi
jmp 0x5a1f54
push edi
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 0x85c], eax
mov dword [ebp - 4], 3
jmp 0x5a2075
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5a5400
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x120]
test eax, eax
je 0x5a54bb
mov ecx, dword [edi + 0x38]
push ebx
push esi
push 3
lea esi, [eax + ecx - 4]
call sub.WS2_32.dll_htonl
mov dword [esi], eax
mov ebx, dword [edi + 0x120]
movsx esi, byte [ebx + 8]
neg esi
sbb esi, esi
push 0x3e8
and esi, 8
call sub.WS2_32.dll_htonl
mov edx, dword [esp + 0x1c]
mov dword [ebx + esi + 0x14], eax
test esi, esi
je 0x5a5462
mov eax, dword [edi + 0x120]
push 0
lea ecx, [esi + eax + 0x18]
push edx
push ecx
mov ecx, edi
call fcn.005a4420
jmp 0x5a5473
mov esi, dword [edi + 0x120]
push edx
add esi, 0x18
call sub.WS2_32.dll_htonl
mov dword [esi], eax
mov esi, dword [edi + 0x38]
mov ecx, dword [edi + 0x120]
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5a54ad
mov ecx, dword [esp + 0xc]
cmp esi, ecx
jne 0x5a54ad
mov eax, dword [esp + 0x18]
add dword [eax], ecx
pop esi
pop ebx
adc dword [eax + 4], 0
pop edi
pop ecx
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov dword [edi + 0xa4], eax
pop ebx
pop edi
pop ecx
ret 0xc
Function at 0x5a54c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push esi
mov esi, ecx
cmp dword [esi + 0x88], 0x24
mov dword [esp + 8], eax
jne 0x5a565e
xor eax, eax
push edi
push 0x24
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call sub.WS2_32.dll_htonl
push 0x1c
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x73746465
call sub.WS2_32.dll_htonl
push 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x74736c65
call sub.WS2_32.dll_htonl
mov edi, dword [esi + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x80]
test eax, eax
je 0x5a55d3
mov ecx, dword [esi + 0x14]
cmp ecx, 0x40
je 0x5a555f
cmp ecx, 0x80
jne 0x5a55d3
mov ecx, eax
sub ecx, edi
jns 0x5a5567
neg ecx
test ecx, ecx
je 0x5a55d3
cmp dword [esi + 0x7c], 0
je 0x5a557c
mov edx, dword [esi + 0xc]
test edx, edx
je 0x5a557c
cmp edx, ecx
jb 0x5a55d3
mov edx, dword [esi + 0x10]
test edx, edx
je 0x5a5590
cmp dword [esi + 0x84], 0
je 0x5a5590
cmp edx, ecx
jb 0x5a55d3
mov edi, eax
mov eax, dword [esi + 0x128]
test eax, eax
je 0x5a55d3
mov eax, dword [eax + 0xc]
push eax
call sub.WS2_32.dll_ntohl
cmp eax, 2
jne 0x5a55d3
mov ecx, dword [esi + 0x128]
mov eax, dword [ecx + 0x10]
push ebx
push eax
call sub.WS2_32.dll_ntohl
mov edx, dword [esi + 0x128]
mov ebx, eax
mov eax, dword [edx + 0x14]
push eax
call sub.WS2_32.dll_ntohl
cmp eax, 0xffffffff
jne 0x5a55d2
sub edi, ebx
pop ebx
push edi
call sub.WS2_32.dll_htonl
push 1
mov dword [esp + 0x2c], eax
call sub.WS2_32.dll_htonl
cmp dword [esi + 0xfc], 0xffffffff
mov dword [esp + 0x2e], eax
pop edi
jne 0x5a55fc
mov dword [esi + 0xfc], 0
mov eax, dword [esi + 0xfc]
push eax
call sub.WS2_32.dll_htonl
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
cmp eax, 0x40
je 0x5a5622
cmp eax, 0x80
je 0x5a5622
cmp eax, 0x800
jne 0x5a562e
push 1
call sub.WS2_32.dll_htons
mov word [esp + 0x2c], ax
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 8]
push eax
push 0x24
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5a5652
cmp dword [esp + 4], 0x24
je 0x5a565e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xa4], eax
mov ecx, dword [esp + 0x30]
pop esi
xor ecx, esp
call fcn.00620b8d
add esp, 0x30
ret 4
Function at 0x5a69e0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x64ce58
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esi + 0x134], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edi
cmp eax, 0xffffffff
jne 0x5a6a9d
cmp edi, edi
jne 0x5a6a9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x5a6a9d
lea ecx, [esp + 0x20]
mov dword [esi + 0xa4], eax
call fcn.004024f0
mov dword [esp + 0x18], edi
mov edx, dword [esi + 0xa4]
push edx
lea eax, [esp + 0x24]
push str.Mp4DR:SIF__err__ld_n
push eax
call fcn.00402f60
mov eax, dword [esp + 0x2c]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
lea ecx, [esi + 0xa0]
push eax
call fcn.00402e00
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402560
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
mov ecx, dword [esp + 0xc]
push 1
push edi
push edi
push ecx
call fcn.006254d0
add dword [esi + 0x68], eax
adc dword [esi + 0x6c], edx
mov edx, dword [esi + 0x68]
or edx, dword [esi + 0x6c]
je 0x5a6a87
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x5a6ae0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x664688
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
push eax
mov esi, ecx
call sub.WS2_32.dll_htonl
push 0
lea ecx, [esp + 0x14]
push ecx
push 8
lea edx, [esp + 0x20]
push edx
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x766f6f6d
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5a6b53
cmp dword [esp + 0x10], 8
jne 0x5a6b53
mov eax, 1
jmp 0x5a6ba4
lea ecx, [esp + 0xc]
call fcn.004024f0
mov dword [esp + 0x28], 0
mov eax, dword [esi + 0xa4]
push eax
lea ecx, [esp + 0x10]
push str.Mp4DR:WMH__err__ld_n
push ecx
call fcn.00402f60
mov eax, dword [esp + 0x18]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
lea ecx, [esi + 0xa0]
push eax
call fcn.00402e00
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402560
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00620b8d
add esp, 0x20
ret 8
Function at 0x5a6bd0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x6646c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov esi, ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
test edi, edi
jl 0x5a6c37
jg 0x5a6c29
cmp dword [esp + 0x54], 0xffffffff
jbe 0x5a6c37
sub eax, 8
sbb ecx, 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5a6c8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xa4], eax
test eax, eax
je 0x5a6c8a
lea ecx, [esp + 0x14]
call fcn.004024f0
mov dword [esp + 0x40], 0
mov edx, dword [esi + 0xa4]
push edx
lea eax, [esp + 0x18]
push str.Mp4DR:WMSVSP_s1__err__ld_n
push eax
call fcn.00402f60
add esp, 0xc
jmp 0x5a6d4a
mov ebx, 4
test edi, edi
jl 0x5a6cdb
jg 0x5a6c9c
cmp dword [esp + 0x54], 0xffffffff
jbe 0x5a6cdb
add dword [esp + 0x54], 8
push 1
adc edi, 0
call sub.WS2_32.dll_htonl
mov ecx, edi
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x7461646d
sar ecx, 0x1f
call sub.WS2_32.dll_htonl
mov edx, dword [esp + 0x54]
push edx
mov dword [esp + 0x30], eax
call sub.WS2_32.dll_htonl
mov dword [esp + 0x30], eax
mov ebx, 0x10
jmp 0x5a6ce9
mov eax, dword [esp + 0x54]
push eax
call sub.WS2_32.dll_htonl
mov dword [esp + 0x24], eax
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
lea edx, [esp + 0x30]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5a6d0e
cmp ebx, dword [esp + 0x18]
jne 0x5a6d0e
mov eax, 1
jmp 0x5a6d71
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
mov dword [esi + 0xa4], eax
call fcn.004024f0
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xa4]
push eax
push ebx
push ecx
lea edx, [esp + 0x20]
push str.Mp4DR:WMSVSP_s2__err__ld__tw_ld__w_ld_n
push edx
call fcn.00402f60
add esp, 0x14
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 0xc]
push edx
push eax
lea ecx, [esi + 0xa0]
call fcn.00402e00
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402560
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00620b8d
add esp, 0x30
ret 0x14
Function at 0x5a6da0
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x664700
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x2c]
push 0
push 0
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5a6e6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x2c]
mov dword [esi + 0xa4], eax
call fcn.004024f0
mov dword [esp + 0x24], 0
mov eax, dword [esi + 0xa4]
push eax
lea ecx, [esp + 0x30]
push str.Mp4DR:WMS_s1__err__ld_n
push ecx
call fcn.00402f60
mov eax, dword [esp + 0x38]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
lea ecx, [esi + 0xa0]
push eax
call fcn.00402e00
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
push edi
mov ecx, esi
call fcn.005a6bd0
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00402560
mov eax, esi
jmp 0x5a6f86
mov ebx, dword [esp + 0x30]
lea ecx, [ebx + 8]
push ecx
push 0
push 0
push 6
mov ebp, 1
push eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x5a6efe
mov ebp, dword [esp + 0x3c]
test ebp, ebp
jl 0x5a6ed8
jg 0x5a6e9f
cmp dword [esp + 0x38], 0xffffffff
jbe 0x5a6ed8
add dword [esp + 0x38], 8
push 1
adc ebp, 0
call sub.WS2_32.dll_htonl
mov dword [ebx + edi - 8], eax
mov edx, ebp
push ebp
mov dword [ebx + edi - 4], 0x7461646d
sar edx, 0x1f
call sub.WS2_32.dll_htonl
mov dword [ebx + edi], eax
mov eax, dword [esp + 0x38]
push eax
call sub.WS2_32.dll_htonl
mov dword [ebx + edi + 4], eax
jmp 0x5a6ee5
mov ecx, dword [esp + 0x38]
push ecx
call sub.WS2_32.dll_htonl
mov dword [ebx + edi], eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x14]
mov dword [esi + 0xa4], eax
jmp 0x5a6f5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
mov dword [esi + 0xa4], eax
call fcn.004024f0
mov dword [esp + 0x24], ebp
mov edx, dword [esi + 0xa4]
push edx
lea eax, [esp + 0x18]
push str.Mp4DR:WMS_s2__err__ld_n
push eax
call fcn.00402f60
mov eax, dword [esp + 0x20]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
lea ecx, [esi + 0xa0]
push eax
call fcn.00402e00
xor edi, edi
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402560
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x5a6f84
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
push ebp
push edx
push eax
push ebx
push ecx
mov ecx, esi
call fcn.005a6bd0
jmp 0x5a6f86
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
Function at 0x5a6fa0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x664728
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
push 0x30
lea eax, [esp + 0x1c]
push 0
push eax
mov esi, ecx
call fcn.00621270
add esp, 0xc
push 0x20
call sub.WS2_32.dll_htonl
mov ecx, dword [str.ftypisom]
mov edx, dword [0x6b3a7c]
mov dword [esp + 0x18], eax
mov eax, dword [str.isomiso2avc1mp41]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x6b3a68]
mov dword [esp + 0x20], edx
mov edx, dword [0x6b3a6c]
mov dword [esp + 0x28], eax
mov eax, dword [0x6b3a70]
push 8
mov byte [esp + 0x2b], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call sub.WS2_32.dll_htonl
push 0
push edi
push 0x30
lea ecx, [esp + 0x24]
push ecx
push ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x65657266
mov dword [esp + 0x58], 0x7461646d
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
cmp eax, ebx
je 0x5a7081
cmp dword [edi], 0x30
jne 0x5a7081
mov dword [ebp], 0x28
mov dword [ebp + 4], ebx
lea eax, [ebx + 1]
jmp 0x5a70df
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
mov dword [esi + 0xa4], eax
call fcn.004024f0
mov dword [esp + 0x54], ebx
mov edx, dword [edi]
mov eax, dword [esi + 0xa4]
push edx
push 0x30
push eax
lea ecx, [esp + 0x20]
push str.Mp4DR:WSt__err__ld__tw_ld__w_ld_n
push ecx
call fcn.00402f60
mov eax, dword [esp + 0x28]
mov edx, dword [eax - 0xc]
add esp, 0x14
push edx
lea ecx, [esi + 0xa0]
push eax
call fcn.00402e00
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402560
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00620b8d
add esp, 0x44
ret 0xc

Function at 0x5a7100
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [ecx + 0x164]
jmp fcn.0056ad10
Function at 0x5a9be0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x664c48
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.CRedirectsHistory.0
call fcn.00411490
xor ebp, ebp
mov dword [esp + 0x20], ebp
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.004024f0
mov byte [esp + 0x20], 1
lea ecx, [esi + 0x1c]
call fcn.004024f0
mov byte [esp + 0x20], 2
lea ecx, [esi + 0x20]
call fcn.004024f0
mov byte [esp + 0x20], 3
lea ecx, [esi + 0x2c]
call fcn.004024f0
mov byte [esp + 0x20], 4
lea ecx, [esi + 0x30]
call fcn.004024f0
mov byte [esp + 0x20], 5
lea ebx, [esi + 0x34]
xor eax, eax
mov dword [ebx], ebp
mov dword [ebx + 8], ebp
mov word [ebx + 4], ax
mov byte [esp + 0x20], 6
lea ebp, [esi + 0x40]
mov ecx, ebp
call fcn.004024f0
mov byte [esp + 0x20], 7
mov ecx, dword [esp + 0x28]
push ecx
push 0x678ea8
push ebp
call fcn.00402f60
mov edx, dword [esp + 0x38]
push edx
push 0x678ea8
push edi
call fcn.00402f60
mov eax, dword [esp + 0x48]
add esp, 0x18
test eax, eax
je 0x5a9cc1
push eax
lea eax, [esi + 0x1c]
push 0x678ea8
push eax
call fcn.00402f60
add esp, 0xc
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5a9cdb
push eax
lea eax, [esi + 0x20]
push 0x678ea8
push eax
call fcn.00402f60
add esp, 0xc
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push edx
mov dword [esi + 0x24], eax
lea eax, [esi + 0x2c]
push 0x678ea8
push eax
mov dword [esi + 0x28], ecx
call fcn.00402f60
mov edx, dword [esp + 0x50]
add esp, 0xc
test edx, edx
je 0x5a9d2d
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5a9d10
sub eax, edi
je 0x5a9d2d
push edx
lea eax, [esi + 0x30]
push 0x678ea8
push eax
call fcn.00402f60
add esp, 0xc
mov edx, dword [esp + 0x48]
test edx, edx
je 0x5a9d59
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5a9d40
sub eax, edi
sar eax, 1
je 0x5a9d59
push edx
mov ecx, ebx
call fcn.004017e0
mov dword [esp + 0x20], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x24
Function at 0x5a9e60
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x664cc8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CRedirectsHistory.0
mov dword [esp + 0x14], 7
call fcn.005a9d80
mov byte [esp + 0x14], 6
lea ecx, [esi + 0x40]
call fcn.00402560
mov byte [esp + 0x14], 5
lea ecx, [esi + 0x34]
call fcn.00401210
mov byte [esp + 0x14], 4
lea ecx, [esi + 0x30]
call fcn.00402560
mov byte [esp + 0x14], 3
lea ecx, [esi + 0x2c]
call fcn.00402560
mov byte [esp + 0x14], 2
lea ecx, [esi + 0x20]
call fcn.00402560
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x1c]
call fcn.00402560
mov byte [esp + 0x14], 0
lea ecx, [esi + 0x18]
call fcn.00402560
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 4]
call fcn.00415bd0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret