joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5989b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x66033b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x38]
mov dword [esi], vtable.CM3UParser::decodingState.0
call fcn.00402500
xor eax, eax
mov dword [esp + 0x14], eax
fldz
fstp qword [esi + 0x30]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov byte [esi + 0xc], al
mov byte [esi + 0xe], al
mov byte [esi + 0x12], al
mov byte [esi + 0xf], al
mov byte [esi + 0x11], al
mov byte [esi + 0x10], al
mov dword [esi + 8], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x599d90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [ecx + 0x3200]
push edi
mov dword [esp + 0x10], ecx
cmp esi, 0x186a0
jbe 0x599dac
mov esi, 0x186a0
mov eax, dword [ecx + 0xc0]
mov ecx, dword [eax + 0x30]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x599ded
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x599f0d
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret 4
push esi
call fcn.005f15c2
add esp, 4
mov dword [esp + 8], eax
test eax, eax
jne 0x599e12
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0x753b
pop esi
add esp, 0xc
ret 4
push ebx
push ebp
push 0
lea edx, [esp + 0x18]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x599ef3
cmp dword [esp + 0x14], esi
jne 0x599ef3
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov ecx, dword [edi + 0x3284]
mov edx, ebx
cmp esi, 4
jb 0x599e74
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x599e78
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x599e60
test esi, esi
je 0x599ebb
movzx ebp, byte [ecx]
movzx eax, byte [edx]
sub eax, ebp
jne 0x599eb3
cmp esi, 1
jbe 0x599ebb
movzx eax, byte [edx + 1]
movzx ebp, byte [ecx + 1]
sub eax, ebp
jne 0x599eb3
cmp esi, 2
jbe 0x599ebb
movzx eax, byte [edx + 2]
movzx ebp, byte [ecx + 2]
sub eax, ebp
jne 0x599eb3
cmp esi, 3
jbe 0x599ebb
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jmp 0x599ebd
xor eax, eax
test eax, eax
mov eax, dword [esp + 0x20]
setne dl
push ebx
mov byte [eax], dl
call fcn.005f15b7
mov ecx, dword [edi + 0x3284]
push ecx
call fcn.005f15b7
add esp, 8
pop ebp
pop ebx
mov dword [edi + 0x3284], 0
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 4
mov edx, dword [esp + 0x10]
push edx
call fcn.005f15b7
add esp, 4
mov eax, ebp
test ebp, ebp
jne 0x599f0b
mov eax, 1
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x59a6c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push 0xffffffffffffffff
push 0x6605b8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x50]
mov al, pe_nt_image_headers32
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], al
mov al, 0xff
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov esi, ecx
mov edx, dword [esi + 0x3238]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x34], 0xef
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], 0xa0
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], 2
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], bl
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, ebx
je 0x59a790
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x59a838
lea ecx, [esp + 0x10]
call fcn.00402500
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x1a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, byte [esp + 0x1f]
movzx ecx, ax
movzx eax, byte [esp + 0x1e]
push ecx
push edi
push edx
push eax
mov eax, dword [esp + 0x2c]
movzx ecx, ah
movzx edx, al
push ecx
push edx
lea eax, [esp + 0x28]
push str._d._d._d._d_s_ld
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x30]
add esp, 0x20
push ecx
push 0x14
lea edx, [esp + 0x30]
push edx
push 2
mov ecx, esi
call fcn.0059a3a0
mov edi, eax
cmp edi, ebx
je 0x59a807
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402570
mov eax, edi
jmp 0x59a838
push 0x18
lea ecx, [esi + 0x322c]
call fcn.005a6df0
mov ecx, esi
call fcn.00560550
mov dword [esi + 0x9c], 4
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402570
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x3c
ret 4
Function at 0x59cb70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
cmp dword [ecx + 0x3200], 0
mov dword [esp + 4], ecx
jne 0x59cb86
xor eax, eax
add esp, 0xc
ret
push edi
mov edi, dword [ecx + 0x3200]
cmp edi, 0x186a0
jbe 0x59cb9a
mov edi, 0x186a0
mov eax, dword [ecx + 0xc0]
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 0x59cbda
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x59cc62
pop ebx
mov eax, 1
pop edi
add esp, 0xc
ret
push esi
push edi
call fcn.005f15c2
mov esi, eax
add esp, 4
test esi, esi
jne 0x59cbfd
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 0x59cc4b
cmp dword [esp + 0xc], edi
jne 0x59cc4b
mov ecx, dword [esp + 0x10]
push edi
push esi
call fcn.0059b960
push esi
mov edi, eax
call fcn.005f15b7
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
add esp, 0xc
ret
push esi
call fcn.005f15b7
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x59cc61
mov eax, 1
pop esi
pop ebx
pop edi
add esp, 0xc
ret
Function at 0x59d610
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x6608a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
push edi
mov eax, dword [0x755898]
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.00402500
mov dword [esp + 0x30], ebx
push str.954afa31_d601_4525_ae7f_57d44aeb4d34
lea ecx, [esp + 0x18]
call fcn.004030b0
mov byte [esp + 0x30], 1
lea eax, [esp + 0x14]
push eax
call fcn.0059a2e0
mov ecx, dword [esi + 0xc0]
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.00402f70
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.0059a3a0
mov edi, eax
cmp edi, ebx
je 0x59d702
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x14]
call fcn.00402570
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402570
mov eax, edi
jmp 0x59d740
push 0x17
lea ecx, [esi + 0x322c]
call fcn.005a6df0
mov ecx, esi
call fcn.00560550
mov dword [esi + 0x9c], 4
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x14]
call fcn.00402570
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402570
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.0061d2ff
add esp, 0x24
ret
Function at 0x59ee30
Capabilities:
Create raw socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660a22
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x755898]
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.005b1e60
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.MMSSession.0
lea ecx, [esi + 0x858]
call fcn.00402500
mov byte [ebp - 4], 1
lea ecx, [esi + 0x85c]
call fcn.00402500
mov byte [ebp - 4], 2
lea ecx, [esi + 0x860]
call fcn.00402500
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
mov dword [esi + 0x150], 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.005b16f0
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x244], edx
mov dword [esi + 0x1b8], edi
mov dword [esi + 0x1bc], edi
mov byte [esi + 0x240], 0
mov dword [esi + 0x864], edi
mov byte [esi + 0x868], 0
xor edx, edx
mov dword [ebp - 0x14], edx
cmp edx, 0x20
jge 0x59efec
mov eax, edx
imul eax, eax, 0x32d0
mov ecx, dword [esi + 0x244]
add ecx, eax
mov dword [ecx + 0xc0], ebx
mov ecx, dword [esi + 0x244]
mov edi, dword [esi + 0x20]
mov dword [ecx + eax + 0xac], edi
mov ecx, dword [esi + 0x244]
mov edi, dword [esi + 8]
mov dword [ecx + eax + 0xc], edi
mov edi, dword [esi + 0x150]
mov ecx, dword [esi + 0x244]
add ecx, eax
mov dword [ecx + 0x194], edi
mov ecx, dword [esi + 0x244]
add ecx, eax
mov dword [ecx + 0x98], edx
lea ecx, [esi + 0x1c0]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0xa4], ecx
lea ecx, [esi + 0x188]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0xf8], ecx
lea ecx, [esi + 0x1f0]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0xa8], ecx
mov ecx, dword [esi + 0x244]
mov dword [ecx + eax + 0x323c], esi
lea ecx, [esi + 0x10]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0xb0], ecx
lea ecx, [esi + 0x248]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0xfc], ecx
lea ecx, [esi + 0x44c]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0x100], ecx
lea ecx, [esi + 0x650]
mov edi, dword [esi + 0x244]
mov dword [edi + eax + 0x104], ecx
inc edx
xor edi, edi
jmp 0x59eef4
push edi
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 0x854], eax
mov dword [ebp - 4], 3
jmp 0x59f015
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 0x5a22e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x114]
test eax, eax
je 0x5a239b
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 + 0x114]
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 0x5a2342
mov eax, dword [edi + 0x114]
push 0
lea ecx, [esi + eax + 0x18]
push edx
push ecx
mov ecx, edi
call fcn.005a13b0
jmp 0x5a2353
mov esi, dword [edi + 0x114]
push edx
add esi, 0x18
call sub.WS2_32.dll_htonl
mov dword [esi], eax
mov esi, dword [edi + 0x38]
mov ecx, dword [edi + 0x114]
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 0x5a238d
mov ecx, dword [esp + 0xc]
cmp esi, ecx
jne 0x5a238d
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 0x5a23a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x755898]
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 0x5a253e
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 0x5a24b3
mov ecx, dword [esi + 0x14]
cmp ecx, 0x40
je 0x5a243f
cmp ecx, 0x80
jne 0x5a24b3
mov ecx, eax
sub ecx, edi
jns 0x5a2447
neg ecx
test ecx, ecx
je 0x5a24b3
cmp dword [esi + 0x7c], 0
je 0x5a245c
mov edx, dword [esi + 0xc]
test edx, edx
je 0x5a245c
cmp edx, ecx
jb 0x5a24b3
mov edx, dword [esi + 0x10]
test edx, edx
je 0x5a2470
cmp dword [esi + 0x84], 0
je 0x5a2470
cmp edx, ecx
jb 0x5a24b3
mov edi, eax
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x5a24b3
mov eax, dword [eax + 0xc]
push eax
call sub.WS2_32.dll_ntohl
cmp eax, 2
jne 0x5a24b3
mov ecx, dword [esi + 0x11c]
mov eax, dword [ecx + 0x10]
push ebx
push eax
call sub.WS2_32.dll_ntohl
mov edx, dword [esi + 0x11c]
mov ebx, eax
mov eax, dword [edx + 0x14]
push eax
call sub.WS2_32.dll_ntohl
cmp eax, 0xffffffff
jne 0x5a24b2
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 + 0xf0], 0xffffffff
mov dword [esp + 0x2e], eax
pop edi
jne 0x5a24dc
mov dword [esi + 0xf0], 0
mov eax, dword [esi + 0xf0]
push eax
call sub.WS2_32.dll_htonl
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
cmp eax, 0x40
je 0x5a2502
cmp eax, 0x80
je 0x5a2502
cmp eax, 0x800
jne 0x5a250e
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 0x5a2532
cmp dword [esp + 4], 0x24
je 0x5a253e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xa4], eax
mov ecx, dword [esp + 0x30]
pop esi
xor ecx, esp
call fcn.0061d2ff
add esp, 0x30
ret 4
Function at 0x5a3880
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x649598
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x755898]
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 + 0x128], 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 0x5a393d
cmp edi, edi
jne 0x5a393d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x5a393d
lea ecx, [esp + 0x20]
mov dword [esi + 0xa4], eax
call fcn.00402500
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.00402f70
mov eax, dword [esp + 0x2c]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
lea ecx, [esi + 0xa0]
push eax
call fcn.00402e10
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402570
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.00621c40
add dword [esi + 0x68], eax
adc dword [esi + 0x6c], edx
mov edx, dword [esi + 0x68]
or edx, dword [esi + 0x6c]
je 0x5a3927
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 0x5a3980
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x660c68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x755898]
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 0x5a39f3
cmp dword [esp + 0x10], 8
jne 0x5a39f3
mov eax, 1
jmp 0x5a3a44
lea ecx, [esp + 0xc]
call fcn.00402500
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.00402f70
mov eax, dword [esp + 0x18]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
lea ecx, [esi + 0xa0]
push eax
call fcn.00402e10
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
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.0061d2ff
add esp, 0x20
ret 8
Function at 0x5a3a70
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x660ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
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 0x5a3ad7
jg 0x5a3ac9
cmp dword [esp + 0x54], 0xffffffff
jbe 0x5a3ad7
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 0x5a3b2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xa4], eax
test eax, eax
je 0x5a3b2a
lea ecx, [esp + 0x14]
call fcn.00402500
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.00402f70
add esp, 0xc
jmp 0x5a3bea
mov ebx, 4
test edi, edi
jl 0x5a3b7b
jg 0x5a3b3c
cmp dword [esp + 0x54], 0xffffffff
jbe 0x5a3b7b
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 0x5a3b89
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 0x5a3bae
cmp ebx, dword [esp + 0x18]
jne 0x5a3bae
mov eax, 1
jmp 0x5a3c11
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
mov dword [esi + 0xa4], eax
call fcn.00402500
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.00402f70
add esp, 0x14
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 0xc]
push edx
push eax
lea ecx, [esi + 0xa0]
call fcn.00402e10
mov dword [esp + 0x40], 0xffffffff
and al, 0x40
invalid
invalid
invalid
dec dword [ebp - 0x17ebdbb4]
popal
jmp 0xc08e3bf6
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.0061d2ff
add esp, 0x30
ret 0x14
Function at 0x5a3c40
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x660ce0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
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 0x5a3d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x2c]
mov dword [esi + 0xa4], eax
call fcn.00402500
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.00402f70
mov eax, dword [esp + 0x38]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
lea ecx, [esi + 0xa0]
push eax
call fcn.00402e10
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.005a3a70
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00402570
mov eax, esi
jmp 0x5a3e26
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 0x5a3d9e
mov ebp, dword [esp + 0x3c]
test ebp, ebp
jl 0x5a3d78
jg 0x5a3d3f
cmp dword [esp + 0x38], 0xffffffff
jbe 0x5a3d78
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 0x5a3d85
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 0x5a3dfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
mov dword [esi + 0xa4], eax
call fcn.00402500
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.00402f70
mov eax, dword [esp + 0x20]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
lea ecx, [esi + 0xa0]
push eax
call fcn.00402e10
xor edi, edi
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x5a3e24
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.005a3a70
jmp 0x5a3e26
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