joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014bf50
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x1014c036
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp edi, 3
jl 0x1014bfc3
xor edx, edx
xor eax, eax
mov dh, byte [esi]
mov al, byte [esi + 2]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
inc ecx
and edx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x1014c01a
xor edx, edx
mov dl, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x1014bfd6
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
cmp edi, 1
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
jne 0x1014c006
mov ebx, 0x3d
jmp 0x1014c014
shr edx, 6
and edx, 0x3f
xor ebx, ebx
mov bl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x1014bf6a
pop esi
pop ebx
mov eax, ebp
pop edi
mov byte [ecx], 0
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov eax, ebp
pop edi
pop ebp
mov byte [ecx], 0
ret

Function at 0x1014f0c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
mov byte [esp + 0xc], 0xfd
push eax
mov dword [esp + 0x1c], eax
push eax
push 0x10
lea eax, [esp + 0x10]
push edx
push eax
mov byte [esp + 0x21], 1
mov byte [esp + 0x26], 0x11
call fcn.10152650
add esp, 0x18
test eax, eax
jne 0x1014f12c
mov al, byte [esp]
test al, al
jne 0x1014f126
cmp dword [esp + 4], 0x79
jne 0x1014f126
push str._VDR_CPUResetWithSTS_:_IO_fail._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x3f
add esp, 0x18
ret
xor eax, eax
add esp, 0x18
ret
mov eax, 1
add esp, 0x18
ret
Function at 0x1014f380
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x11c
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x12f]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dl, byte [esp + 0x12e]
mov dword [esp + 0x14], eax
mov byte [esp + 0xe], cl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x130]
xor ecx, ecx
mov esi, eax
mov cl, ah
mov ebx, dword [esp + 0x12c]
and esi, 0xffff
mov byte [esp + 0xf], dl
mov edx, dword [esp + 0x138]
mov byte [esp + 0x13], cl
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x134]
mov ecx, esi
push edx
shl ecx, 9
push eax
push ecx
lea edx, [esp + 0x18]
push 0x10
lea eax, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0x24], 0xfd
mov byte [esp + 0x25], 1
mov byte [esp + 0x28], bh
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], 0x28
call fcn.10152440
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1014f444
push esi
push ebx
lea ecx, [esp + 0x2c]
push str._VDR_ReadLUNData_:_Read_LBA__0x_lx__Sec__0x_lx__fail....__n
push ecx
call fcn.1003399c
add esp, 0x10
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x11c
ret

Function at 0x1014f450
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x11c
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x12f]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dl, byte [esp + 0x12e]
mov dword [esp + 0x14], eax
mov byte [esp + 0xe], cl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x130]
xor ecx, ecx
mov esi, eax
mov cl, ah
mov ebx, dword [esp + 0x12c]
and esi, 0xffff
mov byte [esp + 0xf], dl
mov edx, dword [esp + 0x138]
mov byte [esp + 0x13], cl
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x134]
mov ecx, esi
push edx
shl ecx, 9
push eax
push ecx
lea edx, [esp + 0x18]
push 0x10
lea eax, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0x24], 0xfd
mov byte [esp + 0x25], 1
mov byte [esp + 0x28], bh
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], 0x2a
call fcn.10152650
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1014f514
push esi
push ebx
lea ecx, [esp + 0x2c]
push str._VDR_WriteLUNData_:_Write_LBA__0x_lx__Sec__0x_lx__fail....__n
push ecx
call fcn.1003399c
add esp, 0x10
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x11c
ret
Function at 0x101503f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x11c
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
mov dl, byte [esp + 0x12e]
mov ebx, dword [esp + 0x12c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x138]
mov cl, byte [esp + 0x12f]
mov dword [esp + 0xc], eax
mov byte [esp + 0xe], cl
mov ecx, dword [esp + 0x130]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0xf], dl
mov dx, word [esp + 0x13c]
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], al
mov byte [esp + 0x15], al
mov byte [esp + 0x16], al
mov al, byte [edi + 0x7c]
cmp al, 3
mov byte [esp + 0xc], 0xfd
mov byte [esp + 0xd], 0x88
mov byte [esp + 0x10], bh
mov byte [esp + 0x11], bl
mov byte [esp + 0x12], dl
mov byte [esp + 0x14], cl
je 0x1015047e
cmp al, 4
je 0x1015047e
cmp al, 6
jb 0x10150486
xor eax, eax
mov al, dh
mov byte [esp + 0x18], al
mov edx, dword [esp + 0x134]
mov esi, ecx
mov ecx, dword [esp + 0x140]
and esi, 0xff
mov eax, esi
push ecx
shl eax, 9
push edx
push eax
lea ecx, [esp + 0x18]
push 0x10
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.10152440
mov al, byte [esp + 0x34]
add esp, 0x18
test al, al
jne 0x101504cc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x11c
ret
mov al, byte [esp + 0x1d]
test al, al
je 0x1015050b
xor eax, eax
push esi
mov al, byte [edi + 0x113]
push ebx
push eax
lea ecx, [esp + 0x30]
push str.__d__VDR_ReadPage_:_RowAddress__0x_lx__SecNo__0x_lx_..._fail__ECC_error__..._n
push ecx
call fcn.1003399c
add esp, 0x14
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, 3
pop ebx
add esp, 0x11c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x11c
ret
Function at 0x10150520
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x11c
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov cl, byte [esp + 0x12f]
mov dl, byte [esp + 0x12e]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x12c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x138]
mov byte [esp + 0xe], cl
mov ecx, dword [esp + 0x130]
mov byte [esp + 0xf], dl
mov al, byte [eax + 0x7c]
mov dx, word [esp + 0x13c]
cmp al, 3
mov byte [esp + 0xc], 0xfd
mov byte [esp + 0xd], 0x81
mov byte [esp + 0x10], bh
mov byte [esp + 0x11], bl
mov byte [esp + 0x12], 2
mov byte [esp + 0x14], cl
mov byte [esp + 0x1b], dl
je 0x101505ab
cmp al, 4
je 0x101505ab
cmp al, 6
jb 0x101505b3
xor eax, eax
mov al, dh
mov byte [esp + 0x1a], al
mov edx, dword [esp + 0x134]
mov esi, ecx
mov ecx, dword [esp + 0x140]
and esi, 0xff
mov eax, esi
push ecx
shl eax, 9
push edx
push eax
lea ecx, [esp + 0x18]
push 0x10
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.10152440
mov al, byte [esp + 0x34]
add esp, 0x18
test al, al
jne 0x101505f9
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x11c
ret
mov al, byte [esp + 0x1d]
test al, al
je 0x1015062f
push esi
push ebx
lea eax, [esp + 0x2c]
push str._VDR_ReadPageWithRetry_:_RowAddress__0x_lx__SecNo__0x_lx_..._fail__ECC_error__..._n
push eax
call fcn.1003399c
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, 3
pop ebx
add esp, 0x11c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x11c
ret
Function at 0x10150640
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x12c
push ebx
push esi
mov esi, dword [esp + 0x138]
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov cl, byte [esi + 5]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
cmp cl, 3
mov dword [esp + 0x14], eax
mov byte [esp + 0xc], 0xfd
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
jne 0x101506e7
mov cx, word [esp + 0x1e]
mov dl, byte [esi + 6]
mov byte [esp + 0xe], ch
mov byte [esp + 0xf], cl
mov cx, word [esp + 0x14c]
mov byte [esp + 0x10], ah
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x140]
xor ebx, ebx
mov byte [esp + 0xd], 0x88
cmp dl, bl
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], bl
mov byte [esp + 0x14], al
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], bl
je 0x101506d4
xor edx, edx
mov byte [esp + 0x17], bl
mov dl, ch
mov byte [esp + 0x18], dl
jmp 0x10150735
mov dl, byte [esi + 4]
inc dl
mov byte [esp + 0x17], dl
xor edx, edx
mov dl, ch
mov byte [esp + 0x18], dl
jmp 0x10150735
mov cx, word [esp + 0x1e]
xor ebx, ebx
mov byte [esp + 0xe], ch
mov byte [esp + 0xf], cl
mov cx, word [esp + 0x14c]
xor edx, edx
mov byte [esp + 0x10], ah
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x140]
mov byte [esp + 0x12], cl
mov cl, byte [esi + 4]
mov dl, ch
mov byte [esp + 0xd], 0x8a
mov byte [esp + 0x13], bl
mov byte [esp + 0x14], al
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], bl
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], cl
mov edx, dword [esp + 0x150]
mov edi, eax
mov eax, dword [esp + 0x144]
and edi, 0xff
mov ecx, edi
push edx
shl ecx, 9
push eax
push ecx
lea edx, [esp + 0x18]
push 0x10
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.10152440
mov al, byte [esp + 0x44]
add esp, 0x18
cmp al, bl
jne 0x1015077b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x12c
ret
cmp byte [esp + 0x2d], bl
je 0x1015080b
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x150]
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
push edx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x38], bl
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebx
call sym.ITEuDllvMgr.dll_ED3Address2CCBAddress
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
add esp, 0x18
and eax, 0xffff
and edx, 0xff
push edi
push eax
mov eax, dword [esp + 0x28]
push ecx
and eax, 0xff
push edx
push eax
lea ecx, [esp + 0x48]
push str._VDR_ED3PageRead_:_Ch__d__Ce__d__Blk_0x_lx__RealPage_0x_lx__SecNo_0x_lx_..._fail_ECC_error__..._n
push ecx
call fcn.1003399c
add esp, 0x1c
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, 3
pop ebx
add esp, 0x12c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x12c
ret
Function at 0x10150b70
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x11c
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x12f]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dl, byte [esp + 0x12e]
mov dword [esp + 0x14], eax
mov byte [esp + 0xe], cl
mov ecx, dword [esp + 0x138]
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x13c]
mov byte [esp + 0xf], dl
mov byte [esp + 0x12], al
lea eax, [ecx*8]
sub eax, ecx
mov ebx, dword [esp + 0x12c]
mov byte [esp + 0xc], 0xfd
mov byte [esp + 0xd], 0x8a
mov dl, byte [eax + 0x10248dcc]
mov cl, byte [eax + 0x10248dd1]
mov byte [esp + 0x17], dl
mov dl, byte [eax + 0x10248dcd]
mov byte [esp + 0x18], dl
mov dl, byte [eax + 0x10248dce]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x130]
mov byte [esp + 0x19], dl
mov dl, byte [eax + 0x10248dcf]
mov al, byte [eax + 0x10248dd0]
mov esi, ecx
and esi, 0xff
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x140]
mov byte [esp + 0x1b], al
mov byte [esp + 0x1a], dl
mov edx, dword [esp + 0x134]
mov eax, esi
push ecx
shl eax, 9
push edx
push eax
lea ecx, [esp + 0x18]
push 0x10
lea edx, [esp + 0x2c]
push ecx
push edx
mov byte [esp + 0x28], bh
mov byte [esp + 0x29], bl
mov byte [esp + 0x2d], 0
mov byte [esp + 0x2e], 0
call fcn.10152650
mov al, byte [esp + 0x34]
add esp, 0x18
test al, al
jne 0x10150c77
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x11c
ret
mov al, byte [esp + 0x1d]
test al, al
je 0x10150cd8
push esi
push ebx
lea eax, [esp + 0x2c]
push str._VDR_WritePage_:_RowAddress__0x_lx__SecNo__0x_lx_..._fail_..._n
push eax
call fcn.1003399c
mov al, byte [esp + 0x2e]
add esp, 0x10
cmp al, 7
jne 0x10150cbe
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._VDR_WritePage_:_Write_Protect_..._n
call esi
lea ecx, [esp + 0x24]
push ecx
call esi
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x11c
ret
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, 4
pop ebx
add esp, 0x11c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x11c
ret
Function at 0x10150df0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
mov ebp, dword [esp + 0x140]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x137]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dl, byte [esp + 0x136]
mov dword [esp + 0x18], eax
mov byte [esp + 0x12], cl
mov ecx, dword [esp + 0x138]
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x134]
mov al, ch
mov byte [esp + 0x17], al
mov al, byte [esp + 0x130]
mov byte [esp + 0x19], al
mov al, byte [ebp + 0x7c]
mov byte [esp + 0x13], dl
mov dx, word [esp + 0x144]
cmp al, 3
mov byte [esp + 0x10], 0xfd
mov byte [esp + 0x11], 0x87
mov byte [esp + 0x14], bh
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], dl
mov byte [esp + 0x18], cl
je 0x10150e84
cmp al, 4
je 0x10150e84
cmp al, 6
jb 0x10150e8c
xor eax, eax
mov al, dh
mov byte [esp + 0x1c], al
mov edx, dword [esp + 0x13c]
mov esi, ecx
mov ecx, dword [esp + 0x148]
and esi, 0xffff
mov eax, esi
push ecx
shl eax, 9
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x10
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.10152440
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x10150eea
mov al, byte [ebp + 0x113]
push esi
push ebx
push eax
lea ecx, [esp + 0x34]
push str.__d__VDR_ReadBlock_:_RowAddress__0x_lx__SecNo__0x_lx_..._fail_..._n
push ecx
call fcn.1003399c
add esp, 0x14
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
Function at 0x10150f00
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x11c
push ebx
mov dl, byte [esp + 0x12a]
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
mov ebx, dword [esp + 0x130]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x133]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov byte [esp + 0xe], cl
mov dword [esp + 0x14], eax
mov byte [esp + 0xf], dl
mov edx, dword [esp + 0x134]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x144]
mov cl, dh
mov byte [esp + 0x12], al
mov al, byte [esp + 0x12c]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x13c]
mov byte [esp + 0x15], al
mov edi, dword [esp + 0x140]
mov byte [esp + 0xc], 0xfd
lea eax, [ecx*8]
mov byte [esp + 0xd], 0x8c
sub eax, ecx
mov byte [esp + 0x10], bh
mov byte [esp + 0x11], bl
mov byte [esp + 0x14], dl
mov cl, byte [eax + 0x10248dcc]
mov byte [esp + 0x16], cl
mov cl, byte [eax + 0x10248dcd]
mov byte [esp + 0x17], cl
mov cl, byte [eax + 0x10248dce]
mov byte [esp + 0x18], cl
mov cl, byte [eax + 0x10248dcf]
mov byte [esp + 0x19], cl
mov cl, byte [eax + 0x10248dd0]
mov al, byte [eax + 0x10248dd1]
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], al
mov al, byte [edi + 0x7c]
cmp al, 3
je 0x10150fe0
cmp al, 4
je 0x10150fe0
cmp al, 6
jb 0x10150fed
xor ecx, ecx
mov cl, byte [esp + 0x145]
mov byte [esp + 0x13], cl
mov eax, dword [esp + 0x138]
mov esi, edx
mov edx, dword [esp + 0x148]
and esi, 0xffff
mov ecx, esi
push edx
shl ecx, 9
push eax
push ecx
lea edx, [esp + 0x18]
push 0x10
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.10152650
mov al, byte [esp + 0x34]
add esp, 0x18
test al, al
jne 0x10151033
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x11c
ret
mov al, byte [esp + 0x1d]
test al, al
je 0x1015109d
xor ecx, ecx
push esi
mov cl, byte [edi + 0x113]
push ebx
push ecx
lea edx, [esp + 0x30]
push str.__d__VDR_WriteBlock_:_RowAddress__0x_lx__SecNo__0x_lx_..._fail_..._n
push edx
call fcn.1003399c
mov al, byte [esp + 0x32]
add esp, 0x14
cmp al, 7
jne 0x10151083
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._VDR_WriteBlock_:_Write_Protect_..._n
call esi
lea eax, [esp + 0x24]
push eax
call esi
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x11c
ret
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, 4
pop ebx
add esp, 0x11c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x11c
ret
Function at 0x101510b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x120
push ebx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
mov dl, byte [esp + 0x12e]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x12f]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x12c]
mov dword [esp + 0x14], eax
mov byte [esp + 0xe], cl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x130]
lea ecx, [esp + 0xb]
push eax
mov byte [esp + 0x13], dl
push ecx
push 1
lea edx, [esp + 0x18]
push 0x10
lea eax, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0x24], 0xfd
mov byte [esp + 0x25], 0x8e
mov byte [esp + 0x28], bh
mov byte [esp + 0x29], bl
call fcn.10152440
add esp, 0x18
test eax, eax
je 0x10151141
mov al, byte [esp + 0xb]
test al, al
jne 0x10151141
pop edi
mov eax, 1
pop ebx
add esp, 0x120
ret
mov al, byte [esp + 0x1c]
test al, al
jne 0x1015117c
cmp dword [esp + 0x20], 0x79
jne 0x1015117c
push ebx
lea ecx, [esp + 0x28]
push str._VDR_BlockErase_:_IO_fail.Addr0x_lx__n
push ecx
call fcn.1003399c
add esp, 0xc
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
mov eax, 0x3f
pop ebx
add esp, 0x120
ret
push ebx
lea eax, [esp + 0x28]
push str._VDR_BlockErase_:_Erase_Error.Addr0x_lx__If_had_NoReadStatus__dont_care_this.__n
push eax
call fcn.1003399c
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop ebx
add esp, 0x120
ret

Function at 0x101511b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x120
push ebx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
mov dl, byte [esp + 0x12e]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x12f]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x12c]
mov dword [esp + 0x14], eax
mov byte [esp + 0xe], cl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x130]
lea ecx, [esp + 0xb]
push eax
mov byte [esp + 0x13], dl
push ecx
push 1
lea edx, [esp + 0x18]
push 0x10
lea eax, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0x24], 0xfd
mov byte [esp + 0x25], 0x8e
mov byte [esp + 0x28], bh
mov byte [esp + 0x29], bl
mov byte [esp + 0x2f], 1
call fcn.10152440
add esp, 0x18
test eax, eax
je 0x10151246
mov al, byte [esp + 0xb]
test al, al
jne 0x10151246
pop edi
mov eax, 1
pop ebx
add esp, 0x120
ret
mov al, byte [esp + 0x1c]
test al, al
jne 0x10151281
cmp dword [esp + 0x20], 0x79
jne 0x10151281
push ebx
lea ecx, [esp + 0x28]
push str._VDR_BlockErase_ED3_:_IO_fail.Addr0x_lx__n
push ecx
call fcn.1003399c
add esp, 0xc
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
mov eax, 0x3f
pop ebx
add esp, 0x120
ret
push ebx
lea eax, [esp + 0x28]
push str._VDR_BlockErase_ED3_:_Erase_Error.Addr0x_lx__If_had_NoReadStatus__dont_care_this.__n
push eax
call fcn.1003399c
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop ebx
add esp, 0x120
ret
Function at 0x101517e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x11c
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x12f]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov byte [esp + 0xe], cl
mov cl, byte [esp + 0x13c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x138]
mov byte [esp + 0x15], cl
mov ecx, dword [esp + 0x134]
mov byte [esp + 0x13], al
mov dl, byte [esp + 0x12e]
lea eax, [ecx*8]
mov byte [esp + 0xf], dl
sub eax, ecx
mov edx, dword [esp + 0x130]
mov esi, edx
mov ebx, dword [esp + 0x12c]
mov cl, byte [eax + 0x10248dcc]
and esi, 0xff
mov byte [esp + 0x16], cl
mov cl, byte [eax + 0x10248dcd]
mov byte [esp + 0x17], cl
mov cl, byte [eax + 0x10248dce]
mov byte [esp + 0x18], cl
mov cl, byte [eax + 0x10248dcf]
mov byte [esp + 0x19], cl
mov cl, byte [eax + 0x10248dd0]
mov al, byte [eax + 0x10248dd1]
mov byte [esp + 0x1a], cl
mov ecx, dword [esp + 0x148]
mov byte [esp + 0x1b], al
mov byte [esp + 0x14], dl
mov edx, dword [esp + 0x140]
mov eax, esi
push ecx
shl eax, 9
push edx
push eax
lea ecx, [esp + 0x18]
push 0x10
lea edx, [esp + 0x2c]
push ecx
push edx
mov byte [esp + 0x24], 0xfd
mov byte [esp + 0x25], 0x81
mov byte [esp + 0x28], bh
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], 5
call fcn.10152650
mov al, byte [esp + 0x34]
add esp, 0x18
test al, al
jne 0x101518ed
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x11c
ret
mov al, byte [esp + 0x1d]
test al, al
je 0x1015196b
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x144]
and eax, 0xff
lea edx, [esp + 0x24]
push eax
xor eax, eax
mov al, byte [ecx + 0x113]
push esi
push ebx
push eax
push str.__d__VDR_ColWriteBlock_:_RowAddress0x_lx__SecNo0x_lx__ColTypeIdx0x_lx_..._fail_..._n
push edx
call fcn.1003399c
mov al, byte [esp + 0x36]
add esp, 0x18
cmp al, 7
jne 0x10151951
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._VDR_ColWriteBlock_:_Write_Protect_..._n
call esi
lea eax, [esp + 0x24]
push eax
call esi
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x11c
ret
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, 4
pop ebx
add esp, 0x11c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x11c
ret
Function at 0x10151980
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x11c
push ebx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
mov ebx, dword [esp + 0x12c]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov cl, byte [esp + 0x12b]
mov dword [esp + 0xc], eax
mov dl, byte [esp + 0x12a]
mov dword [esp + 0x10], eax
mov byte [esp + 0xa], cl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x128]
mov byte [esp + 0xc], ah
mov byte [esp + 0xd], al
xor eax, eax
xor ecx, ecx
mov al, bh
mov byte [esp + 0xb], dl
mov dl, byte [esp + 0x134]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x130]
mov byte [esp + 0x16], dl
mov edx, dword [esp + 0x13c]
mov cl, ah
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x140]
mov byte [esp + 0x14], al
mov al, byte [esp + 0x138]
push ecx
mov byte [esp + 0x1b], al
push edx
push 0x200
lea eax, [esp + 0x14]
push 0x10
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x20], 0xfd
mov byte [esp + 0x21], 0x81
mov byte [esp + 0x26], 6
mov byte [esp + 0x27], 2
mov byte [esp + 0x28], 0
mov byte [esp + 0x2a], bl
call fcn.10152440
mov al, byte [esp + 0x30]
add esp, 0x18
test al, al
jne 0x10151a5b
pop edi
xor eax, eax
pop ebx
add esp, 0x11c
ret
mov al, byte [esp + 0x19]
test al, al
je 0x10151ab7
mov eax, dword [esp + 0x134]
mov edx, dword [esp + 0x128]
and eax, 0xff
and ebx, 0xffff
push eax
mov eax, dword [esp + 0x134]
and eax, 0xffff
push eax
push ebx
push edx
lea eax, [esp + 0x30]
push str._VDR_RootFindRead_:_RowAddress__0x_lx__SearchTimes__0x_lx__JumpOffset0x_lx__Flag_d_..._fail__ECC_error__..._n
push eax
call fcn.1003399c
add esp, 0x18
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
mov eax, 3
pop ebx
add esp, 0x11c
ret
pop edi
mov eax, 1
pop ebx
add esp, 0x11c
ret