joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov ecx, 0x5a4d
mov dword [ebp - 4], eax
cmp word [eax], cx
je 0x401866
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x40187f
mov eax, 0x14c
cmp word [ebx + 4], ax
je 0x401891
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
call edi
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x4018d8
push 4
push 0x3000
push dword [ebx + 0x50]
push eax
call edi
mov esi, eax
mov dword [ebp - 8], eax
test esi, esi
jne 0x4018d8
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x30
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x40190d
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], esi
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
movzx eax, word [ebx + 0x16]
push 4
shr eax, 0xd
and eax, 1
mov dword [edi + 0x1c], 0x401800
push 0x1000
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], 0x401810
mov dword [edi + 0x24], 0x401830
mov dword [edi + 0x28], 0
push dword [ebx + 0x54]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [ebx + 0x54]
mov esi, eax
push dword [ebp - 4]
push esi
call fcn.0040eb20
mov eax, dword [ebp - 4]
mov edx, ebx
mov ecx, dword [ebp - 4]
push edi
mov eax, dword [eax + 0x3c]
add eax, esi
mov esi, dword [ebp - 8]
mov dword [edi], eax
mov dword [eax + 0x34], esi
call fcn.00401430
mov edx, esi
add esp, 0x10
sub edx, dword [ebx + 0x34]
je 0x40199e
mov ecx, edi
call fcn.004015e0
mov dword [edi + 0x18], eax
jmp 0x4019a5
mov dword [edi + 0x18], 1
mov ecx, edi
call fcn.00401690
test eax, eax
je 0x4019e5
mov ecx, edi
call fcn.004014e0
mov ecx, edi
call fcn.004015a0
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x401a11
add eax, esi
cmp dword [edi + 0x14], 0
je 0x401a05
push 0
push 1
push esi
call eax
test eax, eax
jne 0x4019f5
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.00401ae0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x2c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x2c], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b70
Capabilities:
Access peb ldr_data

Disassembly:
cmp dword [0x4252dc], 0
jne 0x401c04
mov eax, dword fs:[0x18]
mov edx, 0xc07d3806
push esi
push edi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov edi, dword [eax]
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.00401e00
mov edx, 0x534bc1b2
mov dword [0x425284], eax
mov ecx, esi
call fcn.00401e00
mov edx, 0x5a4bbb8
mov dword [0x425280], eax
mov ecx, esi
call fcn.00401e00
mov edx, 0x602b783f
mov dword [0x425274], eax
mov ecx, esi
call fcn.00401e00
mov edx, 0xb411bb44
mov dword [0x42527c], eax
mov ecx, esi
call fcn.00401e00
mov ecx, dword [edi]
mov dword [0x425278], eax
mov ecx, dword [ecx + 0x10]
call fcn.00401c10
pop edi
mov dword [0x4252dc], 1
mov eax, 1
pop esi
ret
xor eax, eax
ret

Function at 0x401e00
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x24]
add ecx, edi
mov ebx, dword [eax + 0x18]
add edx, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x20]
add ecx, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x401e76
mov edx, dword [ecx + esi*4]
xor eax, eax
mov cl, byte [edx + edi]
add edx, edi
test cl, cl
je 0x401e69
jmp 0x401e50
imul eax, eax, 0x101
lea edx, [edx + 1]
movzx ecx, cl
add eax, ecx
shl ecx, 0x10
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x401e50
cmp eax, dword [ebp - 4]
je 0x401e7f
mov ecx, dword [ebp - 8]
inc esi
cmp esi, ebx
jb 0x401e38
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d60
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, edx
mov dword [ebp - 4], ecx
push esi
imul edx, ecx, 0x9e3779b9
mov dword [ebp - 8], ebx
mov esi, dword [ebx]
push edi
mov edi, dword [ebx + 4]
test ecx, ecx
je 0x402dcc
mov ebx, dword [ebp + 8]
mov ecx, esi
shr ecx, 5
mov eax, esi
shl eax, 4
xor ecx, eax
mov eax, edx
shr eax, 0xb
add ecx, esi
and eax, 3
mov eax, dword [ebx + eax*4]
add eax, edx
add edx, 0x61c88647
xor ecx, eax
sub edi, ecx
mov ecx, edi
mov eax, edi
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, edx
and eax, 3
add ecx, edi
mov eax, dword [ebx + eax*4]
add eax, edx
xor ecx, eax
sub esi, ecx
dec dword [ebp - 4]
jne 0x402d80
mov ebx, dword [ebp - 8]
mov dword [ebx + 4], edi
pop edi
mov dword [ebx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409010
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40901b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00409030
Function at 0x40fb5b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040c985
mov dword [ebp - 0x14], eax
cmp dword [0x4251f4], esi
jne 0x40fc4e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40fbdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40fd2e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40fd2e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fd2e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4251f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4251f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4251fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425204], eax
test eax, eax
je 0x40fc4b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425200], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40fc73
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40fc66
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40fc88
push 4
pop eax
jmp 0x40fd30
cmp dword [ebp - 0x14], esi
je 0x40fc88
push dword [0x4251f4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40fc6d
mov eax, dword [0x425200]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40fce6
cmp dword [0x425204], edi
je 0x40fce6
push eax
call ebx
push dword [0x425204]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40fce6
test eax, eax
je 0x40fce6
call ecx
test eax, eax
je 0x40fcdb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40fcdb
test byte [ebp - 8], 1
jne 0x40fce6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40fd16
mov eax, dword [0x4251f8]
cmp eax, edi
je 0x40fd13
push eax
call ebx
test eax, eax
je 0x40fd13
call eax
mov esi, eax
test esi, esi
je 0x40fd13
mov eax, dword [0x4251fc]
cmp eax, edi
je 0x40fd13
push eax
call ebx
test eax, eax
je 0x40fd13
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4251f4]
call ebx
test eax, eax
je 0x40fd2e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40fd30
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004097e9
mov esp, ebp
pop ebp
ret
Function at 0x418f10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f12
cmp edx, 0x800
jae 0x418ffb
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x418fd0
mov dword [0x420dbc], 0x4196b0
call fcn.00419140
test eax, eax
jne 0x419018
mov dword [0x420dbc], 0x4195d0
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x7a904333
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data_1
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6cfe5b4f
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x54b730
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xee000]
push edi
jmp 0x54b74a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x54b751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54b740
mov eax, 1
add ebx, ebx
jne 0x54b763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x54b774
jne 0x54b793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54b793
dec eax
add ebx, ebx
jne 0x54b780
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x54b758
add ebx, ebx
jne 0x54b78f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x54b7e5
xor ecx, ecx
sub eax, 3
jb 0x54b7ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x54b81a
sar eax, 1
mov ebp, eax
jmp 0x54b7b6
add ebx, ebx
jne 0x54b7b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54b784
inc ecx
add ebx, ebx
jne 0x54b7c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54b784
add ebx, ebx
jne 0x54b7d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x54b7c6
jne 0x54b7e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x54b7c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x54b804
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x54b7f6
jmp 0x54b746
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x54b804
add edi, ecx
jmp 0x54b746
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x54b822
cmp byte [edi], 0x11
jne 0x54b822
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x54b827
lea edi, [esi + 0x144000]
mov eax, dword [edi]
or eax, eax
je 0x54b89f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b18a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b1a20]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x54b854
mov ecx, edi
jns 0x54b883
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b1a24]
or eax, eax
je 0x54b899
mov dword [ebx], eax
add ebx, 4
jmp 0x54b871
call dword [esi + 0x1b1a34]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x54b8d0
cmp al, 0xef
ja 0x54b8c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x54b8a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x54b8b2
mov ebp, dword [esi + 0x1b1a28]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x54b904
sub esp, 0xffffff80
jmp 0x420577
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x742561b7
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0xea44829
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401050
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, 0x2fc
mov eax, dword [0x43d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
push str.CleanDiskByDiskpart___d_
call fcn.0040f530
push 0x4337b4
push 0
call fcn.0040f640
add esp, 0x10
test eax, eax
jne 0x4010a2
push str.diskpart.exe_not_exist
call fcn.0040f530
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417710
mov esp, ebp
pop ebp
ret
push esi
push str.select_disk__d_r_nclean_r_n
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.00401010
add esp, 0x10
lea eax, [ebp - 0x190]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x190]
push eax
push str._s_ventoydiskpart__u.txt
lea eax, [ebp - 0x298]
push 0x104
push eax
call fcn.00401010
lea esi, [ebp - 0x88]
add esp, 0x14
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x401100
push 0x437304
lea eax, [ebp - 0x298]
mov dword [ebp - 0x29c], 0
push eax
lea eax, [ebp - 0x29c]
sub esi, ecx
push eax
call fcn.0041cec7
mov eax, dword [ebp - 0x29c]
add esp, 0xc
test eax, eax
jne 0x40114e
lea eax, [ebp - 0x298]
push eax
push str.Failed_to_open_file__s
call fcn.0040f530
add esp, 8
jmp 0x40116c
push eax
push esi
lea eax, [ebp - 0x88]
push 1
push eax
call fcn.0041c307
push dword [ebp - 0x29c]
call fcn.0041cd8c
add esp, 0x14
lea eax, [ebp - 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 0x2cc], 1
xor eax, eax
mov word [ebp - 0x2c8], ax
lea eax, [ebp - 0x298]
push eax
push str.C:Windows_system32diskpart.exe__s___s_
lea eax, [ebp - 0x190]
push 0x104
push eax
call fcn.00401010
lea eax, [ebp - 0x190]
push eax
push str.CreateProcess___s_
call fcn.0040f530
add esp, 0x18
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2f8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x190]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push str.Wair_process_...
call fcn.0040f530
add esp, 4
push 0xffffffffffffffff
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.Process_finished...
call fcn.0040f530
add esp, 4
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00417710
mov esp, ebp
pop ebp
ret
Function at 0x405ab0
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 0x405aea
mov ecx, 0x80
mov esi, edx
mov edi, 0x43f1b8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x10]
cmp esi, 1
je 0x405c07
xor ebx, ebx
lea edi, [eax + 1]
dec esi
jmp 0x405aed
mov esi, dword [ebp + 0x10]
cmp dword [0x43e34c], 0
je 0x405bad
mov eax, dword [0x43d8b0]
lea ecx, [eax + eax*2]
mov eax, dword [0x43e348]
lea edx, [eax + ecx*8]
mov ecx, dword [0x43d8b0]
test ecx, ecx
js 0x405b55
cmp dword [edx + 0xc], 0
mov eax, dword [edx + 8]
ja 0x405b21
test eax, eax
je 0x405b55
add eax, dword [edx]
mov ecx, dword [edx + 4]
adc ecx, dword [edx + 0xc]
mov dword [ebp + 0xc], ecx
mov ecx, dword [0x43d8b0]
cmp edi, eax
jne 0x405b55
cmp ebx, dword [ebp + 0xc]
jne 0x405b55
mov eax, esi
xor ecx, ecx
add dword [edx + 8], eax
mov eax, dword [0x43e354]
adc ecx, dword [edx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x43e350]
jmp 0x405b7d
mov eax, dword [0x43e354]
inc ecx
mov dword [0x43d8b0], ecx
mov ecx, dword [0x43e350]
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 [0x43e34c]
shl esi, 9
add ecx, esi
push esi
push 1
push dword [ebp - 8]
adc eax, 0
mov dword [0x43e350], ecx
mov dword [0x43e354], eax
call fcn.0041c307
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 [0x43fce8]
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 [0x43fce8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp dword [ebp + 0xc], esi
je 0x405c07
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.0040f530
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405c70
Capabilities:
Encode data using xor

Disassembly:
push esi
test ecx, ecx
mov eax, 1
push edi
mov esi, edx
mov edi, 0x10
cmovne eax, ecx
mov ecx, eax
lea esi, [esi + 1]
shr ecx, 1
mov edx, ecx
xor edx, 0xa3000000
and al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xa3000000
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xa3000000
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xa3000000
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xa3000000
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xa3000000
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xa3000000
and cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xa3000000
and dl, 1
cmove eax, ecx
mov byte [esi - 1], al
sub edi, 1
jne 0x405c83
pop edi
pop esi
ret
Function at 0x407de0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
push eax
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0xc], edx
push ebx
mov dword [ebp - 8], 0
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x407e69
cmp dword [ebp - 0x14], edi
jne 0x407e69
cmp dword [ebp - 0x10], esi
jne 0x407e69
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push eax
push esi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407e49
cmp dword [ebp - 8], esi
jne 0x407e49
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 8]
push str.Write_file_error__u__u
call fcn.0040f530
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFilePointerEx_Failed__u
call fcn.0040f530
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret