joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1022bf62
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1022c1cf
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1022bf9e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x10259084], 0xc6c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x10259088], 0x241c
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x1022c0d0
jmp 0x1022c043
mov al, byte [ebp - 0x31]
test al, 1
jne 0x1022c0a1
jmp 0x1022c01a
mov eax, dword [ebp - 0x38]
add eax, 1
mov cl, byte [ebp - 0x39]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x31]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x40], eax
jne 0x1022c06f
jmp 0x1022bfe3
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov edx, dword [ebp - 0x48]
add edx, 2
mov esi, dword [ebp - 0x2c]
cmp ecx, esi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x30], eax
jb 0x1022c055
jmp 0x1022c0d0
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x54]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x39], bh
mov byte [ebp - 0x31], cl
je 0x1022bfe3
jmp 0x1022bff0
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x10259088], 0x22be
mov ecx, dword [edx + ecx*4]
mov dword [0x10259084], 0x4c8
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1022c34b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1025908c], 0
mov dword [0x10259090], 0
mov dword [0x1025909c], 0
mov ebx, dword [0x10259084]
add ebx, 0xffffec41
mov dword [0x10259088], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1022c49f
jmp 0x1022c3cf
mov eax, dword [0x10259090]
mov ecx, dword [0x1025908c]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov edi, eax
add edi, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1025908c], edx
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10259090], edx
mov dword [0x10259088], 0x63e
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10259094], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10259094]
mov edx, dword [0x10259090]
mov byte [ebx + edx], cl
mov edx, dword [0x1025908c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10259090]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1025909c], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x10259088], 0xff5
mov dword [0x10259084], 0xc9e
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x2c], edi
jne 0x1022c3b8
mov dword [0x10259088], 0x22fd
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1022c4b1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov edx, dword [0x10259084]
mov esi, edx
add esi, 0xffffddef
mov dword [0x10259088], esi
add edx, 0xfffff1ae
mov dword [0x10259084], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1022bc97
lea ecx, [0x1022b198]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x50], edx
mov dword [esp + 0x68], 0x14d400
mov edx, dword [0x10259070]
mov dword [esp + 0x70], edx
mov edx, dword [0x10259074]
mov dword [esp + 0x20], edx
mov dword [0x10259084], 0x1a6c
mov edx, dword [0x10259078]
mov dword [esp + 0x30], edx
mov edx, dword [0x1025907c]
mov dword [esp + 0x48], edx
mov edx, dword [0x10259080]
mov dword [esp + 0x2c], edx
mov edx, dword [0x10259088]
add edx, 0xc86
mov dword [0x10259088], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1022c5b5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1022c5d8
jmp 0x1022c5c4
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1022b5cd
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x10259088], 0xd4a
mov dword [esp + 8], eax
jmp 0x1022c616
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x1022c566
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1022c5b5
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov dword [0x10259088], 0x8e8
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x38], edx
mov dword [0x10259084], 0x1277
call fcn.1022ba3c
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x1022c57c
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x6c98a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x1c7000]
push edi
jmp 0x6c98ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6c98c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c98b0
mov eax, 1
add ebx, ebx
jne 0x6c98d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6c98e4
jne 0x6c9903
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c9903
dec eax
add ebx, ebx
jne 0x6c98f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6c98c8
add ebx, ebx
jne 0x6c98ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6c9955
xor ecx, ecx
sub eax, 3
jb 0x6c991b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6c998a
sar eax, 1
mov ebp, eax
jmp 0x6c9926
add ebx, ebx
jne 0x6c9926
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c98f4
inc ecx
add ebx, ebx
jne 0x6c9934
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c98f4
add ebx, ebx
jne 0x6c9941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6c9936
jne 0x6c9952
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6c9936
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6c9974
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6c9966
jmp 0x6c98b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6c9974
add edi, ecx
jmp 0x6c98b6
pop esi
mov edi, esi
mov ecx, 0x108d9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6c9992
cmp byte [edi], 0x54
jne 0x6c9992
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6c9997
lea edi, [esi + 0x2bd000]
mov eax, dword [edi]
or eax, eax
je 0x6c9a0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d9bcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d9da0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6c99c4
mov ecx, edi
jns 0x6c99f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2d9da8]
or eax, eax
je 0x6c9a09
mov dword [ebx], eax
add ebx, 4
jmp 0x6c99e1
call dword [esi + 0x2d9da4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6c9a40
cmp al, 0xef
ja 0x6c9a33
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6c9a15
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6c9a22
mov ebp, dword [esi + 0x2d9dac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6c9a74
sub esp, 0xffffff80
jmp 0x5b374c
Function at 0x402445
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x402455
xor eax, eax
leave
ret
test byte [0x41776c], 2
mov dword [ebp - 0x40], 0x40
jne 0x4024aa
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4024aa
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x4024aa
jb 0x402486
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x4024aa
push 0x2b
call fcn.00401f93
push eax
call fcn.0040774f
cmp eax, 1
pop ecx
pop ecx
je 0x4024a3
or dword [0x41776c], 0xffffffff
jmp 0x402451
or dword [0x41776c], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402d2b
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.004013f8
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x402d69
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00402520
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
and word [eax + esi*2], 0
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret

Function at 0x402fc8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402fe5
xor eax, eax
jmp 0x40303e
test al, 0x10
je 0x402ff6
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x40303e
mov eax, dword [0x417770]
invalid
Function at 0x403f49
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
stc
invalid
push ebx
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00403069
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
cld
invalid
jmp dword [ecx]
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0040309b
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403050
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0040308b
add ch, byte gs:[0x10468b6]
add byte [eax], al
Function at 0x4084f0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 8
mov edi, dword [esp + 0x1c]
imul edi, edi, 0x30
mov ebx, dword [esp + 0x24]
mov esi, dword [0x6f76fc]
mov eax, ebx
add eax, dword [esp + 0x28]
mov dword [0x6f7710], eax
mov eax, ebx
shr eax, 0x18
mov ebp, dword [eax*4 + 0x6f76d0]
push 0
add esi, edi
mov dword [esi + 0x18], ebp
call dword [sym.imp.kernel32.dll_SetLastError]
cmp dword [0x6f7718], 0
je 0x4085e0
cmp dword [esi + 4], 0
jne 0x408545
cmp byte [esi + 0xe], 0
je 0x408550
xor eax, eax
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, ebx
mov dword [esi + 0x10], 0
and eax, 0xffffff
mov dword [esi], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
mov byte [esi + 0xd], 0
mov eax, dword [esp + 0x1c]
mov ebp, dword [0x6f7708]
mov edi, dword [0x6f7700]
mov dword [edi + ebp*4], eax
inc dword [0x6f7708]
mov eax, dword [0x6f7708]
cdq
idiv dword [0x6f770c]
mov eax, edx
mov dword [0x6f7708], edx
mov ebx, dword [0x6f7704]
cmp ebx, eax
jne 0x4085b4
push str.Queue_is_full_n
call fcn.00401000
pop ecx
mov eax, dword [0x6f76f4]
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
test eax, eax
jne 0x4085d3
push str.Signal_Sema_Error_n
call fcn.00648b10
pop ecx
add esp, 8
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
cmp dword [0x6f7714], 0
je 0x408637
mov edx, ebx
mov eax, dword [0x6f76fc]
and edx, 0xffffff
add eax, edi
shl edx, 0xb
mov dword [eax + 0x24], edx
add eax, 0x1c
push eax
mov eax, dword [esp + 0x2c]
shl eax, 0xb
push 0
push eax
push dword [esp + 0x2c]
push ebp
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
mov bl, 1
jne 0x40862c
call dword [fcn.00a1215c]
cmp eax, 0x3e5
je 0x40862c
xor bl, bl
movzx eax, bl
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, ebx
and eax, 0xffffff
shl eax, 0xb
push 0
push 0
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 4]
shl eax, 0xb
push 0
push ecx
push eax
push dword [esp + 0x2c]
push ebp
call dword [sym.imp.kernel32.dll_ReadFile]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4086f0
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
sub esp, 0x10
lea ecx, [esp + 0xc]
lea eax, [esp + 8]
push ecx
lea edx, [esp + 8]
push eax
lea eax, [esp + 8]
push edx
push eax
mov esi, dword [esp + 0x30]
push 0
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceA]
cmp dword [esp + 4], 0x800
mov dword [0x6f771c], 0
ja 0x40873f
push str.Using_no_buffered_loading_for_streaming_n
or dword [0x6f771c], 0x20000000
call fcn.00401000
pop ecx
mov eax, dword [esp + 4]
mov dword [0x6f7714], 1
push eax
or dword [0x6f771c], 0x40000000
push 0x800
mov dword [0x6f7718], 0
call fcn.005805f0
pop ecx
pop ecx
push 0
mov ebx, eax
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, esi
mov dword [0x6f76c8], 0
imul eax, eax, 0x30
mov dword [0x6f76cc], esi
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
push eax
mov dword [0x6f76fc], eax
push str.cdvd_stream
push str._s:_read_info__p_n
call fcn.00401000
add esp, 0xc
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [0x6f771c]
or eax, 0x10000001
push 0
push eax
push 3
push 0
push 1
push 0x80000000
push 0x6866c4
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ecx, dword [0x6f76c8]
mov dword [ecx*4 + 0x6f76d0], eax
mov eax, dword [0x6f76c8]
cmp dword [eax*4 + 0x6f76d0], 0
je 0x40880f
mov edi, eax
mov esi, 0x6866c4
shl edi, 6
add edi, 0x6f7488
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [0x6f76c8]
push 1
push 0
push ebx
push 0
call fcn.004084f0
xor esi, esi
add esp, 0x10
cmp dword [0x6f76cc], 0
mov edi, eax
jle 0x408840
mov eax, eax
lea eax, [eax]
push esi
call fcn.004083d0
inc esi
pop ecx
cmp esi, dword [0x6f76cc]
jl 0x408830
xor esi, esi
cmp dword [0x6f76c8], 0
jle 0x40887a
mov eax, eax
lea eax, [eax]
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esi*4 + 0x6f76d0]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esi*4 + 0x6f76d0], 0
inc esi
cmp esi, dword [0x6f76c8]
jl 0x408850
cmp edi, 1
mov dword [0x6f76c8], 0
jne 0x4088a0
mov dword [0x6f7718], 1
push str.Using_async_loading_for_streaming_n
jmp 0x4088c3
and dword [0x6f771c], 0xbfffffff
mov dword [0x6f7714], 0
mov dword [0x6f7718], 1
push str.Using_sync_loading_for_streaming_n
call fcn.00401000
pop ecx
call fcn.004088e0
push ebx
call fcn.005805e0
pop ecx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4088e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push ebp
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
xor ebx, ebx
cmp dword [0x6f76cc], 0
jle 0x40893c
xor ebp, ebp
push 0
push 2
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
mov ecx, dword [0x6f76fc]
mov dword [ecx + ebp + 0x14], eax
mov eax, dword [0x6f76fc]
cmp dword [eax + ebp + 0x14], 0
jne 0x408930
push str.cdvd_stream
push str._s:_failed_to_create_sync_semaphore_n
call fcn.00648b10
pop ecx
pop ecx
pop ebp
pop ebx
ret
inc ebx
add ebp, 0x30
cmp ebx, dword [0x6f76cc]
jl 0x4088f7
mov eax, dword [0x6f76cc]
inc eax
lea eax, [eax*4]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov dword [0x6f7700], eax
mov eax, dword [0x6f76cc]
inc eax
mov dword [0x6f7704], 0
push str.CdStream
push 5
push 0
push 0
mov dword [0x6f7708], 0
mov dword [0x6f770c], eax
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
test eax, eax
mov dword [0x6f76f4], eax
jne 0x4089a4
push str.cdvd_stream
push str._s:_failed_to_create_stream_semaphore_n
call fcn.00648b10
pop ecx
pop ecx
pop ebp
pop ebx
ret
push 0x6f76f8
push 4
push 0
push 0x408260
push 0x10000
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
mov dword [0x6f76f0], eax
jne 0x4089e0
push str.cdvd_stream
push str._s:_failed_to_create_streaming_thread_n
call fcn.00648b10
pop ecx
pop ecx
pop ebp
pop ebx
ret
call dword [fcn.00a1215c]
push eax
call dword [fcn.00a1215c]
dec eax
push eax
mov eax, dword [0x6f76f0]
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
mov eax, dword [0x6f76f0]
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
pop ebp
pop ebx
ret
Function at 0x48bd90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push ebp
mov ebp, 0x3d
sub esp, 0x98
lea edx, [esp + 0x94]
lea eax, [esp + 0x90]
push edx
lea esi, [esp + 0x50]
push eax
lea eax, [esp + 0x94]
push esi
lea ebx, [esp + 0x40]
push eax
lea eax, [esp + 0x84]
push ebx
lea edx, [esp + 0x70]
push eax
lea eax, [esp + 0x34]
push edx
lea esi, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push esi
push eax
mov eax, dword [esp + 0xd0]
push str._d__s__s__s__s__s__x__s__d__d
push eax
call fcn.0064a780
mov eax, dword [esp + 0x30]
add esp, 0x30
push eax
call fcn.0055f5a0
mov ebx, eax
lea edx, [esp + 8]
lea eax, [ebx + 4]
pop ecx
push edx
push eax
call fcn.006425b0
lea eax, [esp + 0x24]
pop ecx
pop ecx
push eax
mov ecx, ebx
call fcn.0053f210
mov ecx, ebx
lea eax, [esp + 0x4c]
mov esi, dword [ecx]
push eax
call dword [esi + 0x18]
mov dword [ebx + 0x1c], 0x978a18
mov byte [ebx + 0x1b], 0
lea eax, [esp + 0x5c]
push eax
call fcn.00530880
mov dword [ebx + 0x34], eax
lea eax, [esp + 0x78]
pop ecx
push eax
call fcn.0052ffe0
xor esi, esi
pop ecx
mov dword [ebx + 0x38], eax
nop
push esi
call fcn.00405980
pop ecx
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00642670
test eax, eax
pop ecx
pop ecx
jne 0x48be70
mov ebp, esi
jmp 0x48be76
inc esi
cmp esi, 0x3d
jl 0x48be50
mov dword [ebx + 0x30], ebp
mov eax, dword [esp + 0x8c]
mov dword [ebx + 0x3c], eax
mov edx, dword [esp + 0x94]
mov al, byte [esp + 0x90]
mov byte [ebx + 0x44], al
mov byte [ebx + 0x45], dl
add esp, 0x98
pop ebp
pop esi
pop ebx
ret
Function at 0x4d1320
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and esp, 0xfffffff8
push 0x691040
call fcn.00401000
lea eax, [esp + 4]
mov dword [0x97f26c], 0x3f800000
fld dword [0x97f26c]
pop ecx
push eax
fstp dword [0x97542c]
mov dword [0x705310], 0
mov byte [0xa10b3e], 0
mov dword [0xa0d89c], 0
mov byte [0xa10b7f], 0
mov dword [0x978d94], 0
mov dword [0x974b34], 1
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4d13c0
push str.Performance_counter_available_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0
push 0x3e8
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0065aae0
push 0x705300
mov dword [0x691010], eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
jmp 0x4d13df
push str.Performance_counter_not_available__using_millesecond_timer_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov dword [0x691010], 0
call fcn.006030d0
mov dword [0xa10688], eax
mov eax, dword [0x978d94]
mov ecx, 0xa10b93
mov dword [0x974b34], eax
mov eax, dword [0x974b34]
push eax
mov dword [0xa0d8a0], 0
call fcn.005f98f0
push str.CTimer_ready_n
call fcn.00401000
pop ecx
mov esp, ebp
pop ebp
ret