joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401130
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x41c]
push 0x20a
push 0
push eax
mov ebx, ecx
call fcn.00411990
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [esi + 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x4012c7
push edi
lea eax, [ebp - 0x41c]
push eax
lea edi, [esi + 0x21e]
push 0x105
push edi
call fcn.0040bcd0
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4011b0
sub ecx, edx
xor eax, eax
sar ecx, 1
push edi
mov word [esi + ecx*2 + 0x21c], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esi + 4], eax
cmp eax, 2
je 0x4011e1
cmp eax, 3
jne 0x4012b2
push 0x104
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x430]
push eax
push esi
push 0x105
lea eax, [esi + 0x632]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ax, word [0x4237e8]
movq xmm0, qword [str.._]
push 0x200
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push 0
push eax
movq qword [ebp - 0x210], xmm0
call fcn.00411990
push edi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0040bc15
add esp, 0x18
lea eax, [ebp - 0x210]
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x218], eax
cmp eax, 0xffffffff
je 0x4012b2
push 0
lea ecx, [ebp - 0x42c]
push ecx
push 0xc
lea ecx, [ebp - 0x428]
push ecx
push 0
push 0
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebp - 0x424]
mov dword [esi + 0x10], eax
push dword [ebx + 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b500
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b500
mov esp, ebp
pop ebp
ret 4
Function at 0x4026e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x28], 0x4f435101
mov dword [ebp - 0x24], 0x6166204d
mov dword [ebp - 0x20], 0x64207473
mov dword [ebp - 0x1c], 0x6c6e776f
mov dword [ebp - 0x18], 0x2064616f
mov dword [ebp - 0x14], 0x746f7270
mov dword [ebp - 0x10], 0x6c6f636f
mov dword [ebp - 0xc], 0x736f6820
mov byte [ebp - 8], 0x74
mov byte [ebp - 7], al
mov word [ebp - 6], 0x102
mov word [ebp - 0x454], 0x17
push edi
mov edi, ecx
cmp al, 2
jbe 0x402757
mov byte [ebp - 5], 0x11
mov byte [edi + 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
mov ecx, dword [edi]
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x450], 0x424
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
call fcn.0040ab90
test eax, eax
jne 0x40279a
cmp dword [ebp - 0x450], eax
jle 0x40279a
cmp byte [ebp - 0x44c], 2
je 0x4027ae
mov ecx, dword [edi]
call fcn.0040aa90
push 0x1f4
call ebx
inc esi
cmp esi, 0xa
jl 0x402760
mov ecx, dword [edi]
call fcn.0040aa90
cmp esi, 0xa
je 0x40281e
push str.Got_hello_response_n
call fcn.0040bae2
add esp, 4
cmp esi, 0xa
jge 0x40281e
nop dword [eax]
mov ecx, dword [edi]
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x450], 0x424
push eax
push 2
lea eax, [ebp - 0x454]
push eax
call fcn.0040ab90
cmp dword [ebp - 0x450], 0
jle 0x40280a
cmp byte [ebp - 0x44c], 0x18
je 0x402836
mov ecx, dword [edi]
call fcn.0040aa90
push 0x1f4
call ebx
inc esi
cmp esi, 0xa
jl 0x4027d0
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b500
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b500
mov esp, ebp
pop ebp
ret 4
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.00411990
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.00411990
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.0040ab90
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.0040b79b
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.0040bae2
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.0040b79b
add esp, 8
test edi, edi
je 0x40293b
push 0x42410c
call fcn.0040bae2
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.0040b500
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040c178
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.00411990
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.0040ab90
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.0040b500
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.00411990
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.0040ab90
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.0040b500
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.00411990
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.0040ab90
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.0040b500
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.0040a980
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.0040b500
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
pop edi
xor ecx, ebp
pop esi
call fcn.0040b500
mov esp, ebp
pop ebp
ret
Function at 0x403d90
Capabilities:
Delete drive layout via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e79b
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.004097e0
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.0040b57a
add esp, 4
mov dword [ebp - 0x70], eax
push 0x41d0
call fcn.0040b57a
add esp, 4
mov dword [ebp - 0x18], eax
push 0xd680
call fcn.0040b57a
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.0040b79b
add esp, 4
push str.Wipping_GPT_and_MBR_n
call fcn.0040b79b
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.0040b500
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.0040b500
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.0040cdf6
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.0040ca05
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.0040b500
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.0040b500
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.0040b500
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.00411990
push 0xff
lea eax, [ebp - 0x203]
mov byte [ebp - 0x204], 0
push 0
push eax
call fcn.00411990
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.00411990
push str.__xml_version_1.0_____n_data__n
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0040ca05
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.0040b500
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.0040cdf6
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.0040cdf6
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.0040ca05
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.0040b500
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.0040b57a
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