joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b4e0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
push dword [0x10064010]
xor esi, esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1001b52c
mov eax, dword [eax + 0x1078]
test eax, eax
je 0x1001b528
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 8]
test eax, eax
je 0x1001fbc4
mov eax, dword [eax + 8]
test eax, eax
je 0x1001fbc4
mov eax, dword [eax + 0x10c]
add eax, 8
cmp dword [eax], esi
jne 0x1001b530
xor esi, esi
inc esi
mov eax, esi
pop esi
ret
mov eax, esi
jmp 0x1001b4fb
push eax
call fcn.10016da7
jmp 0x1001b525
push 0x8004001e
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x1001b528

Function at 0x1001b62f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
push dword [0x10064010]
mov dword [esi], 0x1000351c
call dword [sym.imp.kernel32.dll_TlsGetValue]
xor edi, edi
test eax, eax
je 0x1001b809
mov ecx, dword [eax + 0x1078]
test ecx, ecx
je 0x1001b664
mov ecx, dword [ecx + 0x3c]
push esi
call fcn.10016da7
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x1001b689
add eax, 8
cmp dword [eax], edi
jne 0x1001b810
mov ecx, dword [esi + 0x10c]
call fcn.10016da7
jmp 0x1001f758
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x1001b6b3
mov dword [eax + 8], edi
mov ecx, dword [esi + 0xb4]
test ecx, ecx
je 0x1001b6b3
test byte [esi + 0xb8], 1
jne 0x1001b7ff
mov dword [esi + 0xb4], edi
lea ecx, [esi + 0xbc]
call fcn.10027de3
pop edi
mov ecx, esi
pop esi
nop
nop
nop
nop
nop
mov edi, edi
push esi
mov esi, ecx
push edi
or dword [esi + 0x3c], 0x1000000
mov dword [esi], 0x100034f0
call fcn.10003fe0
test eax, eax
je 0x1001b6eb
push esi
mov ecx, eax
call fcn.10016da7
mov ecx, esi
call fcn.10016da7
mov ecx, esi
call fcn.10016da7
xor edi, edi
mov ecx, esi
push edi
call fcn.10016da7
test dword [esi + 0x3c], 0x4000000
jne 0x1002a6b3
push edi
mov ecx, esi
call fcn.10016da7
mov ecx, esi
call fcn.10016da7
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001e7db
lea ecx, [esi + 0x24]
call fcn.1001b41b
mov ecx, dword [esi + 0x20]
test ecx, ecx
jne 0x1002a6cf
lea ecx, [esi + 0xc]
mov dword [esi], 0x1000390c
call fcn.1001b759
pop edi
mov dword [esi], 0x100033e4
pop esi
ret
call fcn.10016da7
jmp 0x1001b6ad
mov ecx, edi
jmp 0x1001b657
push eax
call fcn.10016da7
jmp 0x1001b679
add ecx, 0xfffffff8
call fcn.100034d9
mov dword [esi + 0x38], edi
jmp 0x1001b72a
mov dword [esi + 0x10c], edi
jmp 0x1001b689
push 1
push dword [0x10066348]
lea ecx, [esi + 0x38]
call fcn.10016da7
and dword [esi + 0x3c], 0xfbffffff
jmp 0x1001b710
add ecx, 0xfffffff0
call fcn.100034d9
mov dword [esi + 0x20], edi
jmp 0x1001b73d
Function at 0x1001bb30
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
mov esi, ecx
test dword [esi + 0x3c], 0x800000
jne 0x1001e43f
push 1
push esi
call fcn.10016da7
push dword [0x10064010]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1001bb8e
mov ecx, dword [eax + 0x1078]
test ecx, ecx
je 0x1001bb6d
mov ecx, dword [ecx + 0x3c]
push esi
call fcn.10016da7
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x1001bb7f
add eax, 8
cmp dword [eax], 0
jne 0x1001bb92
mov ecx, esi
call fcn.1001a3ae
mov ecx, esi
pop esi
jmp fcn.1001954f
xor ecx, ecx
jmp 0x1001bb60
push eax
call fcn.10016da7
jmp 0x1001bb7f
xor eax, eax
pop esi
ret

Function at 0x1001c073
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
xor edi, edi
cmp dword [0x100640cc], edi
jne 0x1002cbb9
mov esi, dword [0x10064010]
cmp esi, 0xffffffff
je 0x1001c09e
push edi
push esi
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov esi, dword [0x10064010]
mov ecx, dword [0x100640f0]
test ecx, ecx
je 0x1001c0b3
call fcn.100034d9
mov esi, dword [0x10064010]
mov eax, dword [0x100640e0]
mov dword [0x100640f0], edi
test eax, eax
jne 0x1001c0e4
cmp dword [0x10064170], edi
jne 0x1001faec
cmp esi, 0xffffffff
je 0x1001c0e1
push esi
call dword [sym.imp.kernel32.dll_TlsFree]
or dword [0x10064010], 0xffffffff
pop edi
pop esi
ret
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [0x10064010]
mov dword [0x100640e0], edi
jmp 0x1001c0c2
mov ecx, 0x10064170
call fcn.10062895
jmp 0x1001c0c2
cmp dword [0x1006416c], edi
je 0x1002cbde
mov ecx, 0x1006416c
call fcn.10062895
or dword [eax + 0x1094], 8
mov eax, dword [eax + 0x1078]
or dword [eax + 0x2c], 2
jmp 0x1002cbb9
mov dword [0x100640cc], edi
jmp 0x1001c085
Function at 0x100444d0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x34], edi
je 0x10044513
test byte [esi + 0x24], 4
je 0x1004453a
push 5
push dword [esi + 0x40]
push dword [esi + 0x34]
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
cmp dword [esi + 0x40], edi
je 0x10044513
push dword [0x10064010]
call dword [sym.imp.kernel32.dll_TlsGetValue]
push dword [esi + 0x40]
lea ecx, [eax + 0x1010]
call fcn.10016da7
mov dword [esi + 0x40], edi
test byte [esi + 0x24], 4
je 0x1004453a
push dword [0x10064010]
call dword [sym.imp.kernel32.dll_TlsGetValue]
push dword [esi + 0x3c]
lea ecx, [eax + 0x1010]
call fcn.10016da7
and dword [esi + 0x24], 0xfffffffb
mov dword [esi + 0x3c], edi
cmp dword [esi + 0x38], edi
je 0x10044584
cmp dword [esi + 0x30], edi
je 0x10044555
push 1
push dword [esi + 0x30]
push dword [esi + 0x38]
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [esi + 0x30], edi
push dword [esi + 0x2c]
push dword [esi + 0x38]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [0x1006418c], edi
je 0x10044578
push dword [esi + 0xa8]
push dword [esi + 0x38]
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push dword [esi + 0x38]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x2c], edi
call fcn.1000376b
pop edi
cmp dword [eax + 0x34], 2
jne 0x1004459e
mov ecx, esi
pop esi
jmp fcn.1001b928
pop esi
ret
Function at 0x10062413
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x100668d4]
push esi
test eax, eax
jne 0x1006242b
call fcn.100624e0
test eax, eax
je 0x10062469
mov eax, dword [0x100668d4]
cmp eax, 1
jne 0x10062447
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x10062469
pop esi
ret
push eax
call dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
test eax, eax
jne 0x100624b1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1006246d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100668d4]
call dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x10062494
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x100624b0
lea edi, [esi + 0xff0]
push esi
push dword [0x100668d4]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1006249a
mov eax, esi
pop edi
pop esi
ret
Function at 0x402060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.00416150
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2010]
mov dword [ebp - 0xc], 0xa000d
push 0
push eax
mov edi, edx
mov dword [ebp - 8], 0
mov esi, ecx
call fcn.0042d440
add esp, 0xc
mov ecx, esi
call fcn.00402d00
test al, al
jne 0x4020b3
mov ecx, esi
call fcn.00402ee0
push edi
lea eax, [ebp - 0x2010]
push 0x1000
push eax
call fcn.00434e2a
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2010]
push 0x1000
push eax
call fcn.00434e8e
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402147
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402116
sub ecx, edx
lea eax, [ebp - 0x2014]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x2010]
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]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00414dec
mov esp, ebp
pop ebp
ret
Function at 0x4027a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x48]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0xd0], ebx
call fcn.0042d440
add esp, 0xc
lea eax, [ebp - 0xc8]
push 0x80
push 0
push eax
call fcn.0042d440
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4027f0
sub ecx, edx
sar ecx, 1
je 0x402977
push 0x800
call fcn.004153d3
add esp, 4
mov esi, eax
push 0x800
call fcn.004153d3
add esp, 4
mov ebx, eax
xor eax, eax
mov ecx, 0x200
mov edi, ebx
rep stosd dword es:[edi], eax
push dword [ebp - 0xd0]
push 0x45cd24
push 0x400
push esi
call fcn.004011f0
movzx eax, word [esi]
push eax
push str._c:_
lea eax, [ebp - 0x48]
push 0x20
push eax
call fcn.004011f0
movzx eax, word [esi]
push eax
call fcn.00435257
add esp, 0x24
test eax, eax
je 0x40288d
push 0
push 0
push 0
push 0
push 0
push 0x40
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x402977
mov edx, ebx
mov ecx, esi
sub edx, esi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x402893
push 0x45cd2c
push esi
call fcn.0042c2ea
add esp, 8
mov edx, 0x45cd38
push 0x400
test eax, eax
je 0x4028c8
lea eax, [ebx + 8]
push eax
push ecx
lea ecx, [esi + 8]
jmp 0x4028cc
push ebx
push ecx
mov ecx, esi
call fcn.00402fb0
add esp, 0xc
mov edx, 0x45cd40
push 0x400
push ebx
push ecx
mov ecx, esi
call fcn.00402fb0
add esp, 0xc
push ebx
push 0x400
push esi
call fcn.00434e2a
add esp, 0xc
push 0
push esi
call fcn.004301de
add esp, 8
mov byte [ebp - 0xc9], 1
cmp eax, 0xffffffff
lea eax, [ebp - 0xf0]
push 1
push 0
push 0
push 0
push eax
jne 0x402926
mov byte [ebp - 0xc9], 0
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40294a
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
call fcn.00414dfd
add esp, 4
test ebx, ebx
je 0x402960
push ebx
call fcn.00414dfd
add esp, 4
mov al, byte [ebp - 0xc9]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414dec
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414dec
mov esp, ebp
pop ebp
ret
Function at 0x402d00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40ec
call fcn.00416150
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x48]
mov esi, ecx
push 0
push eax
call fcn.0042d440
add esp, 0xc
lea eax, [ebp - 0xc8]
push 0x80
push 0
push eax
call fcn.0042d440
add esp, 0xc
lea eax, [ebp - 0x20c8]
push 0x2000
push 0
push eax
call fcn.0042d440
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402d60
sub ecx, edx
sar ecx, 1
je 0x402ec2
push esi
push 0x45cd24
lea eax, [ebp - 0x20c8]
push 0x1000
push eax
call fcn.004011f0
movzx eax, word [ebp - 0x20c8]
push eax
push str._c:_
lea eax, [ebp - 0x48]
push 0x20
push eax
call fcn.004011f0
push dword [ebp - 0x20c8]
call fcn.00435257
add esp, 0x24
test eax, eax
je 0x402ddb
push 0
push 0
push 0
push 0
push 0
push 0x40
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x402ec2
xor eax, eax
lea edi, [ebp - 0x40c8]
mov ecx, 0x800
mov edx, 0x45cd40
rep stosd dword es:[edi], eax
push 0x1000
lea eax, [ebp - 0x40c8]
push eax
push ecx
lea ecx, [ebp - 0x20c8]
call fcn.00402fb0
add esp, 0xc
lea eax, [ebp - 0x40c8]
push eax
lea eax, [ebp - 0x20c8]
push 0x1000
push eax
call fcn.00434e2a
add esp, 0xc
lea eax, [ebp - 0x20c8]
push 0
push eax
call fcn.004301de
add esp, 8
cmp eax, 0xffffffff
lea eax, [ebp - 0x40e8]
push 1
push 0
push 0
push 0
push eax
je 0x402e83
mov bl, 1
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x402eaf
lea eax, [ebp - 0x40e8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40e8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414dec
mov esp, ebp
pop ebp
ret
xor bl, bl
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x402ea9
lea eax, [ebp - 0x40e8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40e8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414dec
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414dec
mov esp, ebp
pop ebp
ret
Function at 0x402ee0
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
call fcn.00402d00
test al, al
jne 0x402fa8
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push edi
mov dword [ebp - 8], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [ebp - 0x10]
push 0
push eax
push 2
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0xffffffff
je 0x402f51
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 5
jge 0x402fa8
mov ecx, edi
call fcn.00402d00
test al, al
jne 0x402fa8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor esi, esi
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x1f4
jae 0x402f93
call fcn.00403470
push 0xa
add esi, 0xa
call ebx
cmp esi, 0x1f4
jl 0x402f70
mov edi, dword [ebp - 0xc]
mov ecx, edi
inc dword [ebp - 4]
call fcn.00402d00
test al, al
je 0x402f10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4034e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x80
lea eax, [ebp - 0x84]
mov esi, ecx
push 0
push eax
xor bl, bl
call fcn.0042d440
add esp, 0xc
lea eax, [ebp - 0x84]
push 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x403534
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414dec
mov esp, ebp
pop ebp
ret
mov ax, word [ebp - 0x84]
mov word [esi], ax
cmp ax, 0x58
je 0x40354a
cmp ax, 0x78
jne 0x40354c
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00414dec
mov esp, ebp
pop ebp
ret
Function at 0x403560
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x45cf7c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x10], eax
mov ax, word [0x45cf80]
mov word [ebp - 0xc], ax
mov al, byte [0x45cf82]
push edi
mov byte [ebp - 0xa], al
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
mov word [ebp - 9], ax
mov byte [ebp - 7], al
lea eax, [ebp - 0x10]
mov dword [ebx], 0xffffffff
push eax
mov dword [esi], 0xffffffff
mov byte [ebp - 0xc], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4035d6
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414dec
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x20]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403600
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
pop edi
shr eax, 0x1f
xor ecx, ebp
pop esi
xor al, 1
pop ebx
call fcn.00414dec
mov esp, ebp
pop ebp
ret
Function at 0x4095e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c2f2
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x90]
push 0x80
push 0
mov dword [ebp - 0x98], esi
push eax
mov dword [ebp - 0x94], 0
call fcn.0042d440
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
add esp, 0xc
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x90]
push 0x40
push eax
mov dword [ebp - 0x94], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, esi
test eax, eax
jne 0x409677
push eax
push 0x45cc2c
call fcn.00403ae0
jmp 0x409696
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 1
jb 0x409686
mov ecx, dword [esi]
mov ax, word [ebp - 0x90]
mov word [ecx], ax
xor eax, eax
mov word [ecx + 2], ax
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.00414dec
mov esp, ebp
pop ebp
ret 4
Function at 0x40a570
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c3d8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movups xmm0, xmmword [ebx + 8]
sub esp, 0x28
mov eax, esp
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebx + 0x18]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebx + 0x28]
movq qword [eax + 0x20], xmm0
call fcn.004096c0
test al, al
jne 0x40a5e1
mov eax, 1
jmp 0x40a710
mov ecx, esi
call fcn.00409b30
test al, al
je 0x40a5d7
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.systemCurrentControlSet_services_stornvme
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40a677
push esi
call edi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x40a677
push ecx
lea ecx, [ebp - 0x20]
call fcn.00411670
push eax
push str._INF__CDiskManager::StartClone__reg1_del_:__ld
call fcn.00410a90
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push eax
push str._INF__CDiskManager::StartClone__reg1_flush_:__ld
call fcn.00410a90
add esp, 8
test esi, esi
je 0x40a670
push esi
call edi
xor esi, esi
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x2001f
push 0
push str.systemCurrentControlSet_services_secnvme
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a6ea
test esi, esi
je 0x40a6a4
push esi
call edi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x40a6ea
push ecx
lea ecx, [ebp - 0x20]
call fcn.00411670
push eax
push str._INF__CDiskManager::StartClone__reg2_del_:__ld
call fcn.00410a90
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push eax
push str._INF__CDiskManager::StartClone__reg2_flush_:__ld
call fcn.00410a90
add esp, 8
test esi, esi
je 0x40a6ea
push esi
call edi
xor esi, esi
lea eax, [ebp - 0x24]
push eax
push 0
push dword [0x46d6a8]
push 0x40a730
push 0
push 0
call fcn.00437e60
add esp, 0x18
test esi, esi
je 0x40a70e
push esi
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00414dec
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x28
Function at 0x40c9b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bd20
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00414ffd
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00413048
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410a90
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0x800
lea eax, [ebp - 0xa14]
mov dword [ebp - 0xa2c], 0
push 0
push eax
call fcn.0042d440
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x410b6b
cmp word [eax], 0
je 0x410b6b
lea eax, [ebp - 0xa24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xa18]
push eax
movzx eax, word [ebp - 0xa1a]
push eax
movzx eax, word [ebp - 0xa1c]
push eax
movzx eax, word [ebp - 0xa1e]
push eax
movzx eax, word [ebp - 0xa22]
push eax
movzx eax, word [ebp - 0xa24]
push eax
push str._04u__02u__02u__02u:_02u:_02u
lea eax, [ebp - 0xa14]
push 0x400
push eax
call fcn.00410c60
add esp, 0x24
lea ecx, [ebp + 0xc]
mov edx, 0x400
sub edx, eax
push ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0xa14]
push 0xffffffffffffffff
lea ecx, [ecx + eax*2]
call fcn.004109a0
add esp, 0x10
mov dword [ebp - 0xa2c], eax
lea eax, [ebp - 0xa14]
push 0x45f4dc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x410b7d
push 0x45f4dc
lea eax, [ebp - 0xa14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.0042d440
add esp, 0xc
lea ecx, [ebp - 0x214]
call fcn.004109e0
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410c4f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x4c4b40
jbe 0x410bff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x20
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410c4f
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xa28]
push eax
lea eax, [ebp - 0xa14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0xa14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xa2c]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00414dec
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00414dec
mov esp, ebp
pop ebp
ret