joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c480
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x420], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48c656
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x68], 0
jne 0x48c638
call fcn.00499c58
test al, al
je 0x48c590
mov eax, 4
call fcn.004027d0
mov esi, eax
mov dword [ebx + 0x68], esi
mov eax, esi
mov edx, dword [0x4010b8]
call fcn.004053d0
cmp dword [ebx + 0x68], 0
je 0x48c638
push 0x408
push 0x2b4
lea eax, [ebp - 0x414]
push eax
push 0
mov eax, dword [ebx + 4]
push eax
mov eax, dword [0x51b5a8]
mov eax, dword [eax]
call eax
mov eax, dword [ebx + 0x68]
lea edx, [ebp - 0x200]
mov ecx, 0x50
call fcn.00404fa4
mov eax, dword [ebx + 0x68]
mov eax, dword [eax]
xor edx, edx
call fcn.004050f8
jne 0x48c638
lea edx, [ebp - 0x420]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xdc]
mov eax, dword [ebp - 0x420]
lea edx, [ebp - 0x41c]
call fcn.00497738
mov eax, dword [ebp - 0x41c]
lea edx, [ebp - 0x418]
call fcn.00497fac
mov edx, dword [ebp - 0x418]
mov ecx, dword [0x51b17c]
mov ecx, dword [ecx]
mov eax, dword [ebx + 0x68]
call fcn.0040504c
jmp 0x48c638
mov eax, 4
call fcn.004027d0
mov esi, eax
mov dword [ebx + 0x68], esi
mov eax, esi
mov edx, dword [0x4010b8]
call fcn.004053d0
cmp dword [ebx + 0x68], 0
je 0x48c638
push 0x408
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
mov eax, dword [ebx + 4]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebx + 0x68]
lea edx, [ebp - 0x50]
mov ecx, 0x50
call fcn.00404f8c
mov eax, dword [ebx + 0x68]
mov eax, dword [eax]
xor edx, edx
call fcn.004050f8
jne 0x48c638
lea edx, [ebp - 0x42c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xdc]
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x428]
call fcn.00497738
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x424]
call fcn.00497fac
mov edx, dword [ebp - 0x424]
mov ecx, dword [0x51b17c]
mov ecx, dword [ecx]
mov eax, dword [ebx + 0x68]
call fcn.0040504c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c65d
lea eax, [ebp - 0x42c]
mov edx, 6
call fcn.00404e04
ret
Function at 0x4990c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 0x40
push 0x1000
push 0xd
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov byte [eax], 0x5a
mov byte [eax + 1], 0xb8
mov dword [eax + 2], ebx
mov byte [eax + 6], 0x50
mov byte [eax + 7], 0x52
mov byte [eax + 8], 0xe9
lea edx, [eax + 8]
sub esi, edx
sub esi, 5
mov dword [eax + 9], esi
pop esi
pop ebx
ret

Function at 0x499294
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004052ec
xor eax, eax
push ebp
push 0x4993dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test bl, bl
je 0x4993aa
mov eax, dword [ebp - 4]
call fcn.004994c0
test al, al
je 0x4993aa
call fcn.00499c58
test al, al
je 0x49932b
cmp dword [0x51a774], 0
je 0x49932b
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fd0
push eax
call dword [0x51a774]
test eax, eax
je 0x4993be
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x4993be
call fcn.00499c8c
test al, al
jne 0x499379
cmp dword [0x51a770], 0
je 0x499379
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00404990
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404bc8
push eax
call dword [0x51a770]
test eax, eax
je 0x4993be
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x4993be
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404bc8
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
mov eax, dword [ebp - 0x2c]
imul dword [ebp - 0x30]
imul dword [ebp - 0x38]
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x4993be
mov byte [0x51a820], 0
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004979a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4993e3
lea eax, [ebp - 0x14]
call fcn.004046f8
lea eax, [ebp - 4]
call fcn.00404dec
ret

Function at 0x499d84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x499dbc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x499d9d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x499dac
or bl, 4
test esi, 0x20000000
je 0x499db7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4d7118
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4d717c
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404978
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409938
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7183
lea eax, [ebp - 0xc]
call fcn.004046f8
ret

Function at 0x4e4940
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov eax, esp
mov edx, 0x94
call fcn.00407b68
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4e496f
cmp dword [esp + 4], 6
jb 0x4e496f
mov bl, 1
mov eax, ebx
add esp, 0x94
pop ebx
ret

Function at 0x4e4b8c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004052ec
xor eax, eax
push ebp
push 0x4e4c87
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0047fb98
test al, al
je 0x4e4c69
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00404e4c
lea eax, [ebp - 0x18]
call fcn.00404c28
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404fd0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4e4c67
mov eax, ebx
call fcn.004027d0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e4c60
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404fd0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4e4c4a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4e4c98
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4e4c4a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
shr eax, 0x10
mov word [esi], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4c67
mov eax, dword [ebp - 0xc]
call fcn.004027f0
ret
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4c8e
lea eax, [ebp - 0x18]
call fcn.00404dec
lea eax, [ebp - 4]
call fcn.00404dec
ret
Function at 0x4e4c9c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004052ec
xor eax, eax
push ebp
push 0x4e4e09
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.004046f8
mov eax, dword [ebp - 4]
call fcn.0047fb98
test al, al
je 0x4e4deb
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fd0
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4e4deb
mov eax, ebx
call fcn.004027d0
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4e4dd8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.00407b68
mov eax, dword [ebp - 0x1c]
push eax
push ebx
push 0
push esi
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4e4e1c
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4e4d53
call fcn.00404120
jmp 0x4e4deb
mov esi, dword [ebp - 0x14]
shr esi, 2
test esi, esi
jl 0x4e4dc2
inc esi
xor edi, edi
mov ebx, edi
shl ebx, 2
add ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
movzx eax, word [ebx]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
movzx eax, word [ebx + 2]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
lea edx, [ebp - 0x38]
mov ecx, 1
mov eax, 0x4e4e40
call fcn.0040a968
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404bc8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e4dbe
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
call fcn.00404900
jmp 0x4e4dc2
inc edi
dec esi
jne 0x4e4d60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4ddf
mov eax, dword [ebp - 0x1c]
call fcn.004027f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4e10
lea eax, [ebp - 0x24]
call fcn.004046f8
lea eax, [ebp - 4]
call fcn.00404dec
ret
Function at 0x4f43f8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4f4400
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4f45f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4f4608
mov eax, esi
call fcn.004f2284
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0040474c
lea ecx, [ebp - 0x10]
mov edx, 0x4f461c
mov eax, esi
call fcn.004f2284
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0040474c
lea ecx, [ebp - 0x14]
mov edx, 0x4f4634
mov eax, esi
call fcn.004f2284
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0040474c
lea ecx, [ebp - 0x18]
mov edx, 0x4f4650
mov eax, esi
call fcn.004f2284
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0040474c
lea ecx, [ebp - 0x1c]
mov edx, 0x4f466c
mov eax, esi
call fcn.004f2284
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0040474c
lea ecx, [ebp - 0x24]
mov edx, 0x4f4684
mov eax, esi
call fcn.004f2284
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040925c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409938
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4f469c
mov eax, esi
call fcn.004f2284
mov eax, dword [ebp - 0x28]
call fcn.004ebd5c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4f46ac
mov eax, esi
call fcn.004f2284
mov eax, dword [ebp - 0x2c]
call fcn.004ebd5c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4f46c4
mov eax, esi
call fcn.004f2284
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409938
inc eax
je 0x4f4595
lea ecx, [ebp - 0x34]
mov edx, 0x4f46c4
mov eax, esi
call fcn.004f2284
mov eax, dword [ebp - 0x34]
call fcn.004098fc
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040b7b0
fstp qword [ebp - 0x3c]
wait
call fcn.0040bbf8
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4f45b0
lea ecx, [ebp - 0x40]
mov edx, 0x4f46c4
mov eax, esi
call fcn.004f2284
mov eax, dword [ebp - 0x40]
call fcn.004ebd5c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4f46d4
mov eax, esi
call fcn.004f2284
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.0040474c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f45f9
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0040471c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.0040471c
ret
Function at 0x4fb384
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4fb3de
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004fb374
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004ea9c8
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004ea5c8
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb3e5
lea eax, [ebp - 4]
call fcn.004046f8
ret

Function at 0x50cb34
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov edi, eax
xor eax, eax
push ebp
push 0x50cbe9
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0x50cbf8
mov edx, dword [0x51b714]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
mov ecx, 0x50cc10
call fcn.00404a14
mov eax, dword [ebp - 0x14]
call fcn.00404bc8
push eax
push 0x50cc24
push 0
call sub.shell32.dll_ShellExecuteA
call fcn.0040bbc4
fstp qword [ebp - 8]
wait
xor esi, esi
call fcn.0040bbc4
fstp qword [ebp - 0x10]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004d9500
mov ebx, eax
cmp esi, ebx
je 0x50cbc2
mov esi, ebx
mov eax, dword [edi + 0x3d0]
mov edx, 0x19
call fcn.004823e4
mov eax, dword [0x51b6ec]
mov eax, dword [eax]
call fcn.00478efc
cmp ebx, 4
jl 0x50cb90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50cbf0
lea eax, [ebp - 0x14]
call fcn.004046f8
ret

Function at 0x513f00
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x513ff9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x513fe0
inc ebx
xor esi, esi
mov eax, dword [0x51b6ec]
mov eax, dword [eax]
call fcn.00478efc
cmp byte [0x51d53c], 0
je 0x513fd8
lea ecx, [ebp - 0xc]
mov edx, esi
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.004049c8
test eax, eax
je 0x513fd8
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x2a
jne 0x513fd8
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, 1
call fcn.00404c6c
mov eax, dword [ebp - 0xc]
call fcn.00409cc8
test al, al
je 0x513fd8
mov edx, 0x20
mov eax, dword [ebp - 0xc]
call fcn.00409de4
cmp byte [0x51d53e], 0
je 0x513fb5
mov edx, dword [ebp - 0xc]
mov eax, dword [0x51d50c]
call fcn.00515430
mov eax, dword [ebp - 0xc]
call fcn.00409f00
test al, al
je 0x513fc6
inc dword [ebp - 8]
jmp 0x513fd8
push 4
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404bc8
push eax
call sub.kernel32.dll_MoveFileExA
inc esi
dec ebx
jne 0x513f3a
mov ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514000
lea eax, [ebp - 0xc]
call fcn.004046f8
ret
Function at 0x51400c
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51411b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x5140fa
inc ebx
xor esi, esi
mov eax, dword [0x51b6ec]
mov eax, dword [eax]
call fcn.00478efc
cmp byte [0x51d53c], 0
je 0x5140f2
lea ecx, [ebp - 0x10]
mov edx, esi
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00404990
mov eax, dword [ebp - 0xc]
call fcn.004049c8
test eax, eax
je 0x5140f2
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x2a
jne 0x5140f2
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, 1
call fcn.00404c6c
mov eax, dword [ebp - 0xc]
call fcn.00409cc8
test al, al
je 0x5140f2
mov edx, 0x20
mov eax, dword [ebp - 0xc]
call fcn.00409de4
cmp byte [0x51d53e], 0
je 0x5140cf
mov edx, dword [ebp - 0xc]
mov eax, dword [0x51d50c]
call fcn.00515430
mov eax, dword [ebp - 0xc]
call fcn.00409f00
test al, al
je 0x5140e0
inc dword [ebp - 8]
jmp 0x5140f2
push 4
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404bc8
push eax
call sub.kernel32.dll_MoveFileExA
inc esi
dec ebx
jne 0x514049
mov ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514122
lea eax, [ebp - 0x10]
call fcn.00404dec
lea eax, [ebp - 0xc]
call fcn.004046f8
ret

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
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.00648ac0
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 [0xa1215c]
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 0x4088e0
Capabilities:
Create 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.00648ac0
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.00648ac0
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.00648ac0
pop ecx
pop ecx
pop ebp
pop ebx
ret
call dword [0xa1215c]
push eax
call dword [0xa1215c]
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 0x672880
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0x10
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], 0
cmp edi, 0x100
jge 0x6728ae
mov edx, dword [edi*4 + 0x7f9f68]
test edx, edx
jne 0x6728c8
push 1
call fcn.0066a2c0
pop ecx
mov dword [eax + 4], 9
or eax, 0xffffffff
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [edx]
mov dword [esp + 8], eax
movsx eax, byte [edx + 4]
test eax, eax
je 0x67291b
xor esi, esi
xor eax, eax
jmp 0x6728e8
cmp byte [eax + ebp], 0xa
jne 0x6728e7
inc esi
inc eax
cmp eax, ebx
jb 0x6728e0
lea eax, [esi + ebx]
push eax
call fcn.00661870
pop ecx
mov dword [esp + 4], eax
mov ecx, eax
xor edx, edx
jmp 0x672911
cmp byte [edx + ebp], 0xa
jne 0x67290a
mov byte [ecx], 0xd
inc ecx
mov al, byte [edx + ebp]
mov byte [ecx], al
inc ecx
inc edx
cmp edx, ebx
jb 0x672900
add ebx, esi
mov ebp, dword [esp + 4]
mov eax, dword [edi*4 + 0x7f9f68]
cmp byte [eax + 5], 0
je 0x672935
push 2
push 0
push edi
call fcn.00672810
add esp, 0xc
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
push dword [esp + 0x18]
call dword [sym.imp.kernel32.dll_WriteFile]
mov esi, eax
cmp dword [esp + 4], 0
je 0x67295b
push dword [esp + 4]
call fcn.006618a0
pop ecx
test esi, esi
je 0x672970
mov eax, dword [esp + 0xc]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
call dword [0xa1215c]
mov dword [0xa0cfe0], eax
xor eax, eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x6729f0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 8
cmp dword [esp + 0x1c], 0x100
jge 0x672a10
mov eax, dword [esp + 0x1c]
mov edx, dword [eax*4 + 0x7f9f68]
test edx, edx
jne 0x672a30
push 1
call fcn.0066a2c0
pop ecx
mov dword [eax + 4], 9
or eax, 0xffffffff
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
movsx ebx, byte [edx + 4]
push 0
lea eax, [esp + 8]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
mov eax, dword [edx]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x672ae0
cmp dword [esp + 4], 0
je 0x672ad2
test ebx, ebx
je 0x672ad2
mov esi, dword [esp + 0x20]
mov ecx, esi
xor ebx, ebx
xor ebp, ebp
jmp 0x672a95
mov al, byte [ecx]
cmp al, 0xd
jne 0x672a90
mov edx, dword [esp + 4]
dec edx
cmp edi, edx
jae 0x672a90
cmp byte [ecx + 1], 0xa
jne 0x672a90
inc ecx
inc ebx
jmp 0x672a94
mov byte [esi], al
inc ecx
inc esi
inc ebp
mov edi, ebp
cmp edi, dword [esp + 4]
jb 0x672a70
mov eax, dword [esp + 0x24]
cmp dword [esp + 4], eax
jne 0x672ace
cmp dword [esp + 4], 1
jbe 0x672ace
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x20]
cmp byte [ecx + eax - 1], 0xd
jne 0x672ace
push 1
push 0xffffffffffffffff
push dword [esp + 0x24]
call fcn.00672810
add esp, 0xc
inc ebx
sub dword [esp + 4], ebx
mov eax, dword [esp + 4]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
call dword [0xa1215c]
mov dword [0xa0cfe0], eax
xor eax, eax
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret