joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002fc1
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
push 0x80
lea eax, [ebp - 0x200]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
push 0x1001df8
lea eax, [ebp - 0x400]
push eax
call esi
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x400]
push eax
mov edi, 0x80000002
push edi
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jne 0x100305e
cmp dword [ebp + 0xc], 0
mov eax, 0x1001db8
jne 0x100304f
mov eax, 0x1001e58
push eax
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 8]
push eax
push 0x1001e28
push edi
call esi
test eax, eax
jne 0x1003083
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8

Function at 0x10032ee
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
push 0x3ff
lea eax, [ebp - 0x800]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x800]
push eax
mov eax, dword [0x100507c]
push 1
neg eax
sbb eax, eax
add eax, 3
push eax
push 0x10
push 0xf01ff
push dword [0x1005078]
push dword [0x1005074]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
pop edi
pop esi
jne 0x1003362
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x401ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x401ee9
xor ecx, ecx
jne 0x401ee9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401f30
mov eax, dword [ebp - 0xc]
jmp 0x401f8d
cmp dword [ebp - 4], 1
je 0x401f43
cmp dword [ebp - 4], 2
je 0x401f43
mov eax, 0xd
jmp 0x401f8d
cmp dword [ebp + 0xc], 0
je 0x401f81
cmp dword [ebp - 8], 0
je 0x401f79
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x401f70
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x401f77
mov eax, 0xd
jmp 0x401f8d
jmp 0x401f81
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402120
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00401ba0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401e10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40218b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00401c00
mov eax, dword [ebp - 0x224]
jmp 0x40221c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4021f1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402120
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4021e8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00401c00
mov eax, dword [ebp - 0x228]
jmp 0x40221c
mov dword [ebp - 4], 0x100
jmp 0x402192
lea ecx, [ebp - 0x14]
call fcn.00401d40
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00401c80
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00401c00
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret 4
Function at 0x4031e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sbb ecx, dword [ebp - 0x48f0f3b2]
ror byte [ebx + 0x318b0441], 1
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x4031f6
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x4031e7
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00402fa2
aaa
xchg esi, eax
push esi
dec edi
lea eax, [ebp - 0x58]
push eax
call fcn.00402fb2
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00402f67
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x403290
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00402fa2
xchg byte [edx - 0x7a], cl
xor al, 0x8d
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x406750
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp - 0x21c]
call fcn.004099d0
test eax, eax
je 0x406782
mov eax, 1
jmp 0x406827
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4067a1
xor eax, eax
jmp 0x406827
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x21c]
add edx, 0x230
push edx
mov eax, dword [ebp - 0x21c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40680e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x406827
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0x406840
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004099d0
test eax, eax
jne 0x40685f
mov eax, 1
jmp 0x4068ea
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40687b
xor eax, eax
jmp 0x4068ea
push 0x10020
mov eax, dword [ebp - 0x2c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4068aa
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4068ea
lea eax, [ebp - 0x28]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], 0
je 0x4068e8
mov eax, 1
jmp 0x4068ea
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x407668
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412018]
jne 0x407672
repz ret
jmp fcn.00407bfa

Function at 0x4081a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x430], ax
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x218], dx
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x438], 0
push 0x105
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x434]
push ecx
push 0x105
lea edx, [ebp - 0x430]
push edx
push 0x40d928
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x408266
push 0xa
push 0x104
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.MSVCR90.dll__itow_s]
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x408288
push str.thsnYaViMRAeBoda
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.004063f0
cmp dword [ebp + 0xc], 0
je 0x4082a0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.004063f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0xa7a178
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [esp + 0x24], edi
jmp 0xa7b558
pushfd
pop dword [esp + 8]
pushfd
jmp 0xa7a3fb
pushal
mov dword [esp + 0x28], ecx
jmp 0xa799fc
push dword [esp]
push 0xcaca4448
mov dword [esp + 0x28], edx
jmp 0xa7a6ce

Function at 0xa7a696
Capabilities:
Check for software breakpoints

Disassembly:
bt bp, di
stc
cmp dx, 0x9709
xchg dword [ebp + ecx*4], eax
test sp, di
mov dword [esp], eax
cmc
sub ecx, 1
pushal
lea esp, [esp + 0x20]
jne 0xa7a6e8
Function at 0x10003120
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1eb2720
push 0x1e986dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.10018f60
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402380
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x449aa8], 0
push esi
jne 0x4023bf
push 0x104
push 0x449aa8
push 0x43bd10
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [0x449aa8], 0
jne 0x4023bf
push str.C:Windows
push 0x104
push 0x449aa8
call fcn.00401010
add esp, 0xc
push 0x449aa8
push str._s_system32diskpart.exe
push 0
call fcn.00414c60
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4023e6
push str.diskpart.exe_not_exist
call fcn.00414ac0
add esp, 4
mov eax, esi
pop esi
ret

Function at 0x4023f0
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x448004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x110]
mov edi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x110]
push eax
push str._s_ventoydiskpart__u.txt
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00401010
mov esi, edi
add esp, 0x14
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402445
push 0x44098c
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
push eax
lea eax, [ebp - 0x21c]
sub esi, ecx
push eax
call fcn.0042528c
mov eax, dword [ebp - 0x21c]
add esp, 0xc
test eax, eax
jne 0x402493
lea eax, [ebp - 0x218]
push eax
push str.Failed_to_open_file__s
call fcn.00414ac0
add esp, 8
jmp 0x4024ab
push eax
push esi
push 1
push edi
call fcn.004246d7
push dword [ebp - 0x21c]
call fcn.00425151
add esp, 0x14
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 0x24c], 1
xor eax, eax
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x218]
push eax
push str.C:Windows_system32diskpart.exe__s___s_
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00401010
lea eax, [ebp - 0x110]
push eax
push str.CreateProcess___s_
call fcn.00414ac0
add esp, 0x18
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x278]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push str.Wair_process_...
call fcn.00414ac0
add esp, 4
push 0xffffffffffffffff
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.Process_finished...
call fcn.00414ac0
mov eax, dword [ebp - 0x22c]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x402568
push eax
call esi
mov dword [ebp - 0x22c], 0xffffffff
mov eax, dword [ebp - 0x228]
cmp eax, 0xffffffff
je 0x402580
push eax
call esi
mov dword [ebp - 0x228], 0xffffffff
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret
Function at 0x404d60
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
mov dword [ebp - 8], 0
push edi
push str.PSHELL_GetPartitionNumber_PhyDrive:_d_Offset:_llu
call fcn.00414ac0
add esp, 0xc
xor dl, dl
mov ecx, edi
push 0
call fcn.0040cd60
mov esi, eax
add esp, 8
mov dword [ebp - 0xc], esi
cmp esi, 0xffffffff
jne 0x404dae
or eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x9000
call fcn.0042442e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404ebf
push 0x9000
push 0
push ebx
call fcn.00420f90
add esp, 0xc
lea eax, [ebp - 8]
push 0
push eax
push 0x9000
push ebx
push 0
push 0
push 0x70050
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x404e25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_ioctrl_get_drive_layout_ex__u
call fcn.00414ac0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
or esi, 0xffffffff
call fcn.0042422d
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx + 4]
cmp dword [ebx], 0
mov ecx, 0x43f9d4
mov eax, 0x43f9d0
cmovne eax, ecx
push eax
push edi
push str.PhyDrive:_d__PartitionStyle_s__PartitionCount_u
call fcn.00414ac0
xor edi, edi
add esp, 0x10
cmp dword [ebx + 4], edi
jbe 0x404ebf
lea esi, [ebx + 0x48]
mov ecx, dword [esi - 0x10]
mov eax, dword [esi - 0xc]
mov edx, dword [esi]
cmp ecx, dword [ebp + 8]
jne 0x404e7e
cmp eax, dword [ebp + 0xc]
jne 0x404e7e
push dword [esi - 4]
push dword [esi - 8]
push eax
push ecx
push edx
push edi
push str._____d__PartitionNumber_u_Offset_lld_Length_lld
call fcn.00414ac0
mov eax, dword [esi]
mov dword [ebp - 4], eax
jmp 0x404e92
push dword [esi - 4]
push dword [esi - 8]
push eax
push ecx
push edx
push edi
push str.______d__PartitionNumber_u_Offset_lld_Length_lld
call fcn.00414ac0
inc edi
add esp, 0x1c
add esi, 0x90
cmp edi, dword [ebx + 4]
jb 0x404e51
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 4]
push ebx
call fcn.0042422d
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
test ebx, ebx
je 0x404ed6
push ebx
call fcn.0042422d
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404ee0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1064
call fcn.004344c0
mov eax, dword [0x448004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x449aa8], 0
push esi
mov esi, ecx
jne 0x404f38
push 0x104
push 0x449aa8
push 0x43bd10
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [0x449aa8], 0
jne 0x404f38
push str.C:Windows
push 0x104
push 0x449aa8
call fcn.00401010
add esp, 0xc
push 0x449aa8
push str._s_system32WindowsPowerShell_v1.0powershell.exe
push 0
call fcn.00414c60
add esp, 0xc
test eax, eax
jne 0x404f6e
push str.powershell.exe_not_exist
call fcn.00414ac0
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1060]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 0x1034], 1
xor eax, eax
push esi
push str.C:Windows_system32WindowsPowerShell_v1.0powershell.exe__Command____s__
mov word [ebp - 0x1030], ax
lea eax, [ebp - 0x1008]
push 0x1000
push eax
call fcn.00401010
lea eax, [ebp - 0x1008]
push eax
push str.CreateProcess___s_
call fcn.00414ac0
add esp, 0x18
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x1060]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push str.Wair_process_...
call fcn.00414ac0
add esp, 4
push 0xffffffffffffffff
push dword [ebp - 0x1018]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.Process_finished...
call fcn.00414ac0
mov eax, dword [ebp - 0x1018]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x405025
push eax
call esi
mov dword [ebp - 0x1018], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, 0xffffffff
je 0x405033
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret

Function at 0x407ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x4493f0], 0
push esi
push edi
mov edi, edx
jne 0x407d30
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, esi
push 0
shld eax, ecx, 9
push edx
shl ecx, 9
push eax
push ecx
push dword [0x44b728]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 8]
push eax
push 0x200
push edi
push dword [0x44b728]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 0x200
mov dword [ebp - 0xc], eax
je 0x407d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 8]
push 0x200
push dword [ebp - 0xc]
push str.ReadFile_error_bRet:_u_WriteSize:_u_dwSize:_u_ErrCode:_u
call fcn.00414ac0
add esp, 0x14
or esi, dword [ebp + 0xc]
jne 0x407d30
mov ecx, 0x80
mov esi, 0x44a9d8
rep movsd dword es:[edi], dword [esi]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
or eax, ebx
mov dword [ebp - 8], edx
jne 0x407d7a
mov ecx, 0x80
mov esi, edx
mov edi, 0x44a9d8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x10]
cmp esi, 1
je 0x407eb7
xor ebx, ebx
lea edi, [eax + 1]
dec esi
jmp 0x407d7d
mov esi, dword [ebp + 0x10]
cmp dword [0x4493f0], 0
je 0x407e3d
mov eax, dword [0x4488b0]
lea ecx, [eax + eax*2]
mov eax, dword [0x4493e4]
lea edx, [eax + ecx*8]
mov ecx, dword [0x4488b0]
test ecx, ecx
js 0x407de5
cmp dword [edx + 0xc], 0
mov eax, dword [edx + 8]
ja 0x407db1
test eax, eax
je 0x407de5
add eax, dword [edx]
mov ecx, dword [edx + 4]
adc ecx, dword [edx + 0xc]
mov dword [ebp + 0xc], ecx
mov ecx, dword [0x4488b0]
cmp edi, eax
jne 0x407de5
cmp ebx, dword [ebp + 0xc]
jne 0x407de5
mov eax, esi
xor ecx, ecx
add dword [edx + 8], eax
mov eax, dword [0x4493ec]
adc ecx, dword [edx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x4493e8]
jmp 0x407e0d
mov eax, dword [0x4493ec]
inc ecx
mov dword [0x4488b0], ecx
mov ecx, dword [0x4493e8]
mov dword [edx + 0x18], edi
mov dword [edx + 0x1c], ebx
mov dword [edx + 0x28], ecx
mov dword [edx + 0x2c], eax
mov dword [edx + 0x20], esi
mov dword [edx + 0x24], 0
push dword [0x4493f0]
shl esi, 9
add ecx, esi
push esi
push 1
push dword [ebp - 8]
adc eax, 0
mov dword [0x4493e8], ecx
mov dword [0x4493ec], eax
call fcn.004246d7
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
shld ebx, edi, 9
lea eax, [ebp - 0x14]
push eax
push ebx
shl edi, 9
push edi
push dword [0x44b728]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp + 0xc]
shl esi, 9
push eax
push esi
push dword [ebp - 8]
push dword [0x44b728]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test edi, edi
je 0x407e82
cmp dword [ebp + 0xc], esi
je 0x407eb7
mov ecx, dword [0x4493f4]
inc ecx
mov dword [0x4493e0], 1
mov dword [0x4493f4], ecx
cmp ecx, 0xa
jg 0x407eb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push esi
push edi
push str.WriteFile_error_bRet:_u_WriteSize:_u_dwSize:_u_ErrCode:_u
call fcn.00414ac0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret