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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
push 0x418
mov dword [ebp - 0x454], eax
xor edi, edi
push edx
lea eax, [ebp - 0x43e]
mov dword [ebp - 0x450], ecx
push eax
mov dword [ebp - 0x444], edi
mov esi, 0x400
mov dword [ebp - 0x44c], edx
mov word [ebp - 0x440], 7
call fcn.00411960
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, 0x200
mov eax, dword [ebp - 0x44c]
cmp eax, ecx
jae 0x402a9c
add eax, 2
cmp eax, ecx
mov eax, dword [ebp - 0x454]
cmova esi, edx
cmp eax, 0xffffffff
je 0x402990
push 0
lea ecx, [ebp - 0x444]
push ecx
push esi
lea ecx, [ebp - 0x43b]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402988
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0x444]
jmp 0x4029aa
push esi
lea eax, [ebp - 0x43b]
push 0
push eax
call fcn.00411960
mov ecx, esi
add esp, 0xc
mov dword [ebp - 0x444], ecx
mov eax, ecx
shr eax, 9
add dword [ebp - 0x44c], eax
test ecx, ecx
je 0x402a9c
mov eax, ebx
mov byte [ebp - 0x43f], bl
shr eax, 8
mov byte [ebp - 0x43e], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x43d], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x43c], al
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x448], 0x20
push eax
lea eax, [ecx + 5]
mov ecx, dword [ebp - 0x450]
push eax
lea eax, [ebp - 0x440]
push eax
mov ecx, dword [ecx]
call fcn.0040ab60
cmp dword [ebp - 0x448], 0
mov al, byte [ebp - 0x24]
je 0x402a21
cmp al, 8
je 0x402a61
movzx eax, al
push eax
push str.Device_returned_error:__i_n
call fcn.0040b76b
add esp, 8
cmp byte [ebp - 0x24], 0xe
jne 0x402a5c
mov eax, dword [ebp - 0x448]
cmp eax, 2
jl 0x402a5c
add eax, 0xfffffffe
cmp eax, 0x20
jae 0x402ac6
mov byte [ebp + eax - 0x24], 0
lea eax, [ebp - 0x23]
push eax
call fcn.0040bab2
add esp, 4
mov edi, 0x1d
mov eax, dword [ebp - 0x450]
cmp byte [eax + 4], 0
je 0x402a80
mov eax, dword [ebp - 0x444]
shr eax, 9
add ebx, eax
push ebx
push str.Destination_sector:__i_r
jmp 0x402a8c
add ebx, dword [ebp - 0x444]
push ebx
push str.Destination_offset:__i_r
call fcn.0040b76b
add esp, 8
test edi, edi
je 0x40293b
push 0x42410c
call fcn.0040bab2
mov ecx, dword [ebp - 4]
add esp, 4
xor eax, eax
cmp edi, 0x26
cmove edi, eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040c148
int3
Function at 0x403000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7f
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x223
lea eax, [ebp - 0xab]
mov dword [ebp - 0xa], 0
push 0
push eax
mov edi, ecx
mov byte [ebp - 0xac], 0
movups xmmword [ebp - 0x2a], xmm0
movups xmmword [ebp - 0x1a], xmm0
call fcn.00411960
add esp, 0xc
mov dword [ebp - 0xb0], 0x80
mov word [ebp - 0xa], 0xdead
lea edx, [ebp - 0x29]
mov ecx, 0xffff
mov esi, 7
movzx eax, byte [edx - 2]
lea edx, [edx + 5]
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx eax, byte [edx - 6]
movzx ecx, cx
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx eax, byte [edx - 5]
movzx ecx, cx
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx eax, byte [edx - 4]
movzx ecx, cx
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx eax, byte [edx - 3]
movzx ecx, cx
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx ecx, cx
sub esi, 1
jne 0x403066
not ecx
movzx eax, cx
mov ecx, dword [edi]
mov byte [ebp - 8], al
shr eax, 8
mov byte [ebp - 7], al
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xac]
push eax
push 0x26
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ab60
pop edi
pop esi
test eax, eax
jne 0x40312c
cmp byte [ebp - 0xac], 0x24
jne 0x40312c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret
Function at 0x403140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7f
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x123
lea eax, [ebp - 0xab]
mov dword [ebp - 0xa], 0
push 0
push eax
mov edi, ecx
mov byte [ebp - 0xac], 0
movups xmmword [ebp - 0x2a], xmm0
movups xmmword [ebp - 0x1a], xmm0
call fcn.00411960
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x29]
mov eax, ecx
mov byte [ebp - 0x2a], cl
shr eax, 8
add esp, 0xc
mov byte [ebp - 0x29], al
mov esi, 7
mov eax, ecx
mov dword [ebp - 0xb0], 0x80
shr eax, 0x10
mov byte [ebp - 0x28], al
shr ecx, 0x18
mov byte [ebp - 0x27], cl
mov ecx, dword [ebp + 0xc]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x25], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x26], cl
mov byte [ebp - 0x24], al
shr ecx, 0x18
mov byte [ebp - 0x23], cl
mov ecx, dword [ebp + 0x10]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x21], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x22], cl
shr ecx, 0x18
mov byte [ebp - 0x20], al
mov byte [ebp - 0x1f], cl
mov ecx, dword [ebp + 0x14]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x1d], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x1e], cl
shr ecx, 0x18
mov byte [ebp - 0x1c], al
mov eax, 0xffff
mov byte [ebp - 0x1b], cl
mov word [ebp - 0xa], 0xdead
movzx ecx, byte [edx - 2]
lea edx, [edx + 5]
xor ecx, eax
shr ax, 8
and ecx, 0xff
xor ax, word [ecx*2 + 0x4235e0]
movzx ecx, ax
movzx eax, byte [edx - 6]
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx eax, byte [edx - 5]
movzx ecx, cx
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx eax, byte [edx - 4]
movzx ecx, cx
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx eax, byte [edx - 3]
movzx ecx, cx
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx eax, cx
sub esi, 1
jne 0x403216
mov ecx, dword [edi]
not eax
movzx eax, ax
mov byte [ebp - 8], al
shr eax, 8
mov byte [ebp - 7], al
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xac]
push eax
push 0x26
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ab60
pop edi
pop esi
test eax, eax
jne 0x4032dd
cmp byte [ebp - 0xac], 0x24
jne 0x4032dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4032f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7f
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x23
lea eax, [ebp - 0xab]
mov dword [ebp - 0xa], 0
push 0
push eax
mov edi, ecx
mov byte [ebp - 0xac], 0
movups xmmword [ebp - 0x2a], xmm0
movups xmmword [ebp - 0x1a], xmm0
call fcn.00411960
add esp, 0xc
mov dword [ebp - 0xb0], 0x80
mov word [ebp - 0xa], 0xdead
lea edx, [ebp - 0x29]
mov ecx, 0xffff
mov esi, 7
movzx eax, byte [edx - 2]
lea edx, [edx + 5]
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx eax, byte [edx - 6]
movzx ecx, cx
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx eax, byte [edx - 5]
movzx ecx, cx
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx eax, byte [edx - 4]
movzx ecx, cx
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx eax, byte [edx - 3]
movzx ecx, cx
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx ecx, cx
sub esi, 1
jne 0x403356
not ecx
movzx eax, cx
mov ecx, dword [edi]
mov byte [ebp - 8], al
shr eax, 8
mov byte [ebp - 7], al
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xac]
push eax
push 0x26
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ab60
pop edi
pop esi
test eax, eax
jne 0x403447
cmp byte [ebp - 0xac], 0x24
jne 0x403447
movzx eax, byte [ebp - 0xa4]
movzx ecx, byte [ebp - 0xa5]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0xa6]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0xa7]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
cdq
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret

Function at 0x403aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
cmp esi, 1
jl 0x403b25
cmp esi, 0x100
ja 0x403b25
push ecx
mov ecx, 0x42b1e0
call fcn.0040a950
push esi
lea edx, [ebp - 0x104]
mov ecx, edi
call fcn.00403a30
add esp, 4
mov dword [ebp - 0x108], esi
xor edi, edi
lea eax, [ebp - 0x108]
push edi
push eax
push esi
lea eax, [ebp - 0x104]
push eax
push dword [0x42b1e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403b13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
pop edi
xor ecx, ebp
pop esi
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret
Function at 0x403d90
Capabilities:
Delete drive layout via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e76b
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x278]
call fcn.004097b0
push 0
push 0
push 0
push 0
mov dword [ebp - method.DiskWriter.virtual_0], vtable.DiskWriter.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x8000
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], 0xffffffff
mov byte [ebp - 0x3c], 0
call fcn.0040b54a
add esp, 4
mov dword [ebp - 0x70], eax
push 0x41d0
call fcn.0040b54a
add esp, 4
mov dword [ebp - 0x18], eax
push 0xd680
call fcn.0040b54a
add esp, 4
mov dword [ebp - 0x14], eax
push 0
lea ecx, [ebp - 0x278]
mov dword [ebp - 4], 0
call fcn.00401400
push esi
lea ecx, [ebp - 0x278]
call fcn.00402130
mov esi, eax
test esi, esi
jne 0x403eac
push str.Successfully_opened_volume_n
call fcn.0040b76b
add esp, 4
push str.Wipping_GPT_and_MBR_n
call fcn.0040b76b
add esp, 4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x27c]
push eax
push esi
push esi
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x7c100
push dword [ebp - 0x60]
call esi
test eax, eax
je 0x403ea7
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x27c]
push eax
push 0
push 0
push 0
push 0
push 0x70140
push dword [ebp - 0x60]
call esi
test eax, eax
je 0x403ea7
xor esi, esi
jmp 0x403eac
mov esi, 0x1f
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x34], 0xffffffff
cmp eax, 0xffffffff
je 0x403ec2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
cmp eax, 0xffffffff
je 0x403ed1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x278]
call fcn.00401090
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret
Function at 0x406070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x614
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
mov dword [ebp - 0x60c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4060cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret 0x20
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x200
push esi
push 0x200
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x614]
push eax
call fcn.0040cdc6
mov eax, dword [ebp + 0x1c]
add esp, 0x14
mov ebx, dword [ebp + 0x18]
test eax, eax
jg 0x40614f
jl 0x406109
test ebx, ebx
jae 0x40614f
mov esi, dword [ebp + 0x20]
mov ecx, ebx
mov edx, dword [ebp + 0x24]
push eax
push ebx
shld eax, ecx, 9
push eax
shl ecx, 9
mov eax, edx
push ecx
mov ecx, esi
shrd ecx, eax, 1
shr eax, 1
push eax
mov eax, dword [ebp + 0x1c]
push ecx
push edx
push esi
push eax
push ebx
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp - 0x60c]
push dword [ebp + 0x10]
push dword [eax + 0x574]
push str._program_SECTOR_SIZE_IN_BYTES__i__file_sector_offset__I64d__filename__s__label_ffu_image__I64d__num_partition_sectors__I64d__physical_partition_number_0__size_in_KB__I64d__sparse_false__start_byte_hex_0x_I64x__start_sector_NUM_DISK_SECTORS_I64d____n
jmp 0x406193
mov esi, dword [ebp + 0x20]
mov ecx, ebx
mov edx, dword [ebp + 0x24]
push eax
push ebx
shld eax, ecx, 9
push eax
shl ecx, 9
mov eax, edx
push ecx
mov ecx, esi
shrd ecx, eax, 1
shr eax, 1
push eax
mov eax, dword [ebp + 0x1c]
push ecx
push edx
push esi
push eax
push ebx
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp - 0x60c]
push dword [ebp + 0x10]
push dword [eax + 0x574]
push str._program_SECTOR_SIZE_IN_BYTES__i__file_sector_offset__I64d__filename__s__label_ffu_image__I64d__num_partition_sectors__I64d__physical_partition_number_0__size_in_KB__I64d__sparse_false__start_byte_hex_0x_I64x__start_sector__I64d____n
lea eax, [ebp - 0x608]
push 0x400
push eax
call fcn.0040c9d5
lea ecx, [ebp - 0x608]
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4061b0
sub ecx, edx
lea edx, [ebp - 0x610]
push 0
push edx
push ecx
lea ecx, [ebp - 0x608]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4061f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
movq xmm0, qword [str.__data__n]
mov al, byte [0x426b1c]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ecx
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 8], al
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406250
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret 4
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret 4
Function at 0x406290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x303]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0xff
push 0
push eax
mov byte [ebp - 0x304], 0
call fcn.00411960
push 0xff
lea eax, [ebp - 0x203]
mov byte [ebp - 0x204], 0
push 0
push eax
call fcn.00411960
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.00411960
push str.__xml_version_1.0_____n_data__n
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0040c9d5
add esp, 0x30
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40634c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406355
push 0
lea eax, [ebp - 0x308]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406380
sub ecx, edx
lea eax, [ebp - 0x304]
sar ecx, 1
push ecx
push ebx
push 0x100
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.0040cdc6
mov ecx, edi
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4063b1
sub ecx, edx
lea eax, [ebp - 0x204]
sar ecx, 1
push ecx
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.0040cdc6
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x304]
push eax
push str._____emmcdl.exe__splitffu__s__o__s_____n
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0040c9d5
lea ecx, [ebp - 0x104]
add esp, 0x28
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406410
push 0
lea eax, [ebp - 0x308]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret 8
Function at 0x406450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x140], 0xffffffff
jne 0x406470
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esi + 0x128]
xor eax, eax
imul ebx, dword [esi + 0x104]
push 0x4000
mov dword [ebp - 8], 0
add ebx, dword [esi + 0x138]
adc eax, dword [esi + 0x13c]
mov dword [ebp - 4], eax
call fcn.0040b54a
add esp, 4
mov dword [esi + 0x570], eax
lea edi, [esi + 0x144]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [ebp - 8]
push edi
push eax
push 0x200
lea eax, [esi + 0x16c]
mov dword [edi + 8], ebx
push eax
push dword [esi + 0x140]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4064ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0x10]
add ebx, 0x200
adc dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [ebp - 8]
push edi
push eax
push 0x200
lea eax, [esi + 0x370]
mov dword [edi + 8], ebx
push eax
push dword [esi + 0x140]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4064e1
push dword [edi + 0x10]
add ebx, 0x200
adc dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [ebp - 8]
push edi
push eax
push 0x4000
mov dword [edi + 8], ebx
push dword [esi + 0x570]
push dword [esi + 0x140]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4064e1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 0x10], 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0
je 0x4074ec
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0
push edi
call fcn.00411960
add esp, 0xc
mov dword [ebp + 0x10], 0
lea ebx, [esi + 0x258]
cmp dword [ebx], 0
jbe 0x407470
nop dword [eax]
mov eax, dword [esi + 0x254]
push 7
push 0x426c40
mov al, byte [eax]
inc dword [ebp - 4]
mov byte [edi], al
inc edi
inc dword [esi + 0x254]
lea eax, [edi - 7]
push eax
call fcn.0040cf00
add esp, 0xc
test eax, eax
je 0x4074de
add dword [ebx], 0xffffffff
jne 0x407440
push dword [esi + 0x25c]
push 0
push dword [esi + 0x250]
call fcn.00411960
mov eax, dword [esi + 0x25c]
add esp, 0xc
mov ecx, dword [esi + 0x250]
mov dword [ebx], eax
mov eax, dword [esi + 0x238]
push 0
push ebx
mov dword [esi + 0x254], ecx
push dword [ebx]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4074c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4074c2
mov dword [ebx], 0
mov eax, dword [ebp + 0x10]
inc eax
mov dword [ebp + 0x10], eax
cmp eax, 3
jl 0x407438
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
dec dword [ebx]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x258]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
test eax, eax
je 0x407564
push eax
push str.Using__i_bytes_from_mbuffer
push esi
call fcn.00409850
mov eax, dword [esi + 0x258]
add esp, 0xc
cmp eax, edi
jb 0x407541
push edi
push dword [esi + 0x254]
sub eax, edi
push edi
push dword [ebp + 8]
mov dword [esi + 0x258], eax
call fcn.0040bb66
add esp, 0x10
mov eax, edi
add dword [esi + 0x254], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 8]
push eax
push dword [esi + 0x254]
push edi
push ebx
call fcn.0040bb66
mov eax, dword [esi + 0x258]
add esp, 0x10
add ebx, eax
sub edi, eax
mov dword [ebp - 4], edi
jmp 0x407567
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x238]
lea ecx, [ebp - 4]
push 0
push ecx
push edi
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40758b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x40758d
xor ecx, ecx
mov eax, dword [ebp - 4]
add eax, dword [esi + 0x258]
mov dword [esi + 0x258], 0
test ecx, ecx
je 0x4075a6
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x258]
mov esi, dword [edi + 0x24c]
push 0x800
push 0
push esi
mov dword [ebp - 4], 0
call fcn.00411960
add esp, 0xc
mov dword [ebp - 8], 0
cmp dword [ebx], 0
jbe 0x4079c0
nop word [eax + eax]
mov eax, dword [edi + 0x254]
push 7
push 0x426c40
mov al, byte [eax]
inc dword [ebp - 4]
mov byte [esi], al
inc esi
inc dword [edi + 0x254]
lea eax, [esi - 7]
push eax
call fcn.0040cf00
add esp, 0xc
test eax, eax
je 0x407a24
add dword [ebx], 0xffffffff
jne 0x407990
push dword [edi + 0x25c]
push 0
push dword [edi + 0x250]
call fcn.00411960
mov eax, dword [edi + 0x25c]
add esp, 0xc
mov ecx, dword [edi + 0x250]
mov dword [ebx], eax
mov eax, dword [edi + 0x238]
push 0
push ebx
mov dword [edi + 0x254], ecx
push dword [ebx]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407a12
mov dword [ebx], 0
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 3
jl 0x407985
jmp 0x407a26
dec dword [ebx]
cmp dword [ebp - 4], 0
jle 0x407a8d
push dword [edi + 0x24c]
push edi
call fcn.00409850
push 0x426e94
push dword [edi + 0x24c]
call fcn.0040cf80
add esp, 0x10
test eax, eax
jne 0x407a84
push 0x426e98
push dword [edi + 0x24c]
call fcn.0040cf80
add esp, 8
test eax, eax
je 0x407961
push str._n___Target_returned_NAK____n
push edi
call fcn.00409850
add esp, 8
mov eax, 0xd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x15
pop ebx
mov esp, ebp
pop ebp
ret