joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7850
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4faaa3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004eda16
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004f30af
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004f45cb
test eax, eax
je 0x4b796c
mov ecx, dword [esp + 0x3c]
call fcn.004f30dc
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4b7930
push edi
mov ecx, esi
call fcn.004f0746
mov ecx, esi
call fcn.004b7b10
cmp dword [esp + 0x38], 1
jne 0x4b7965
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004f0881
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4b9b50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4b9b83
push esi
call fcn.004c7ef0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4b9b7c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4b9c09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4b9bf2
mov eax, dword [esi + 8]
test eax, eax
je 0x4b9ba7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4b9bee
cmp eax, 2
je 0x4b9bf2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4b9b9a
cmp eax, 3
je 0x4b9bcd
cmp eax, 1
jne 0x4b9b9a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4b9b9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4b9b9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004b9c30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4b9c18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004b9c30
add esp, 4
pop esi
ret

Function at 0x4ba4a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4ba4c1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4ba4c1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4ba4c1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4d52b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fae98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d4e90
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.004d4f00
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004d51e0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004d4eb0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x4d52c8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fae98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d4e90
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.004d4f00
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004d51e0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004d4eb0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x4d55c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4faf10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.004d4e90
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.004d4e90
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.004d4f00
cmp dword [esp + 0x40], ebx
jne 0x4d5648
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.004d4eb0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004d4eb0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.004d5500
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.0049b490
cmp eax, esi
jb 0x4d56cb
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0x7e75f8
lea ecx, [esp + 0x1c]
call fcn.004d52b0
cmp eax, 1
jne 0x4d56bd
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004d5050
push ebx
lea ecx, [esp + 0x20]
call fcn.0049d070
push eax
call fcn.004dddf3
add esp, 8
test eax, eax
jge 0x4d56bd
push ebx
lea ecx, [esp + 0x20]
call fcn.004d5390
push eax
call edi
test eax, eax
je 0x4d5700
lea ecx, [esp + 0xc]
inc esi
call fcn.0049b490
cmp esi, eax
jbe 0x4d566d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004d4eb0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004d4eb0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004d4eb0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004d4eb0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4d7be0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4d7beb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4d7cee
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x7cc6f4]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x7cc6f4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x7cc6f4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x7cc6f4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x7cc6f4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x7cc6f4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x7cc6f4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x7cc6f4]
xor eax, edx
inc ecx
dec edi
jne 0x4d7c06
pop edi
test esi, esi
je 0x4d7d10
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x7cc6f4]
xor eax, edx
inc ecx
dec esi
jne 0x4d7cf2
pop esi
pop ebx
not eax
ret

Function at 0x4d84b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x4d84f1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d84e6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x4d8504
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x4d9440
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x4d94f5
cmp dword [ebp + 4], 0xffffffff
jne 0x4d94f5
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x7e7880
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x4d94bd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4d94bd
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.004d8240
add esp, 0x10
test eax, eax
jne 0x4d94e0
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.004d8780
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x4d9950
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x4d9a18
mov al, byte [ecx]
test al, al
je 0x4d9a18
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x4d997b
cmp al, 0x5c
jne 0x4d997d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4d9973
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x4d99b4
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.004de07d
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.004d9950
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4dddf3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4dde13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004dd84a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4dde36
test byte [esp + 8], 2
je 0x4dde36
call fcn.004dd8bd
mov dword [eax], 0xd
call fcn.004dd8c6
mov dword [eax], 5
jmp 0x4dde0f
xor eax, eax
ret

Function at 0x4ee80c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ee844
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ec899
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ec871
jmp 0x4ee850
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4eff03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4eff45
call fcn.004f59bb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4eff45
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4eff3c
xor eax, eax
jmp 0x4eff4d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004eff53
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f5eeb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f5f19
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f5f37
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f5e51
jmp 0x4f5f37
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f5f37
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f5e51
test edi, edi
mov eax, edi
jne 0x4f5f21
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434004]
jne 0x40100a
repz ret
jmp fcn.00401221

Function at 0x404dbc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402623
and dword [ebp - 4], 0
cmp dword [0x435bf0], 0
mov ebx, eax
jne 0x404e6d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404f1e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404f1e
push eax
call fcn.004025b1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435bf0], eax
call esi
push eax
call fcn.004025b1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435bf4], eax
call esi
push eax
call fcn.004025b1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435bf8], eax
call esi
push eax
call fcn.004025b1
pop ecx
mov dword [0x435c00], eax
test eax, eax
je 0x404e6d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004025b1
pop ecx
mov dword [0x435bfc], eax
mov eax, dword [0x435bfc]
cmp eax, ebx
je 0x404ec5
cmp dword [0x435c00], ebx
je 0x404ec5
push eax
call fcn.0040262c
push dword [0x435c00]
mov esi, eax
call fcn.0040262c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404ec5
test edi, edi
je 0x404ec5
call esi
test eax, eax
je 0x404ebc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404ebc
test byte [ebp - 0xc], 1
jne 0x404ec5
or dword [ebp + 0x10], 0x200000
jmp 0x404efe
mov eax, dword [0x435bf4]
cmp eax, ebx
je 0x404efe
push eax
call fcn.0040262c
pop ecx
test eax, eax
je 0x404efe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404efe
mov eax, dword [0x435bf8]
cmp eax, ebx
je 0x404efe
push eax
call fcn.0040262c
pop ecx
test eax, eax
je 0x404efe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435bf0]
call fcn.0040262c
pop ecx
test eax, eax
je 0x404f1e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404f20
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431460
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x434004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x50e2e4]
push ebx
push esi
mov esi, dword [0x50e12c]
mov ebx, eax
cmp eax, 0x5dd
jne 0x43149a
push 0
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x434c70]
call fcn.00431350
cmp dword [0x50e2e4], 0x2f
jne 0x4314b5
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.00431390
add esp, 4
cmp dword [0x50e2e4], 0x568
pop esi
pop ebx
jne 0x4314de
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
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 [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x218]
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 - 0x218]
push eax
push str._s_ventoydiskpart__u.txt
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004136cf
mov esi, edi
add esp, 0x14
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401055
push 0x429714
lea eax, [ebp - 0x110]
mov dword [ebp - 0x21c], 0
push eax
lea eax, [ebp - 0x21c]
sub esi, ecx
push eax
call fcn.004147e8
mov eax, dword [ebp - 0x21c]
add esp, 0xc
test eax, eax
jne 0x4010a3
lea eax, [ebp - 0x110]
push eax
push str.Failed_to_open_file__s
call fcn.0040c4e0
add esp, 8
jmp 0x4010bb
push eax
push esi
push 1
push edi
call fcn.00413b26
push dword [ebp - 0x21c]
call fcn.00414899
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 - 0x110]
push eax
push str.C:Windows_system32diskpart.exe__s___s_
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004136cf
lea eax, [ebp - 0x218]
push eax
push str.CreateProcess___s_
call fcn.0040c4e0
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 - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push str.Wair_process_...
call fcn.0040c4e0
add esp, 4
push 0xffffffffffffffff
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.Process_finished...
call fcn.0040c4e0
add esp, 4
lea eax, [ebp - 0x110]
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.004136c0
mov esp, ebp
pop ebp
ret
Function at 0x4046c0
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 0x4046fa
mov ecx, 0x80
mov esi, edx
mov edi, 0x430f78
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x10]
cmp esi, 1
je 0x404819
xor ebx, ebx
lea edi, [eax + 1]
dec esi
jmp 0x4046fd
mov esi, dword [ebp + 0x10]
cmp dword [0x4300e8], 0
je 0x4047bf
mov eax, dword [0x42f1cc]
lea ecx, [eax + eax*2]
mov eax, dword [0x4300d8]
lea edx, [eax + ecx*8]
mov ecx, dword [0x42f1cc]
test ecx, ecx
js 0x404767
cmp dword [edx + 0xc], 0
ja 0x404730
cmp dword [edx + 8], 0
jbe 0x404767
mov eax, dword [edx]
add eax, dword [edx + 8]
mov ecx, dword [edx + 4]
adc ecx, dword [edx + 0xc]
mov dword [ebp + 0xc], ecx
mov ecx, dword [0x42f1cc]
cmp edi, eax
jne 0x404767
cmp ebx, dword [ebp + 0xc]
jne 0x404767
mov eax, esi
xor ecx, ecx
add dword [edx + 8], eax
mov eax, dword [0x4300e4]
adc ecx, dword [edx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x4300e0]
jmp 0x40478f
mov eax, dword [0x4300e4]
inc ecx
mov dword [0x42f1cc], ecx
mov ecx, dword [0x4300e0]
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 [0x4300e8]
shl esi, 9
add ecx, esi
push esi
push 1
push dword [ebp - 8]
adc eax, 0
mov dword [0x4300e0], ecx
mov dword [0x4300e4], eax
call fcn.00413b26
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 [0x432a08]
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 [0x432a08]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp dword [ebp + 0xc], esi
je 0x404819
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.0040c4e0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4067c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x3f
lea eax, [ebp - 0x43]
mov byte [ebp - 0x44], 0
push 0
push eax
mov esi, ecx
call fcn.004198c0
add esp, 0xc
push 0x3fb
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xa
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004140ac
mov edx, dword [0x4300ec]
add esp, 0xc
mov ecx, dword [0x42f1d0]
test edx, edx
je 0x406892
test ecx, ecx
jne 0x40685b
test eax, eax
je 0x40682f
cmp eax, 0x7d000000
jb 0x406892
mov ecx, dword [0x43024c]
push 0x10
lea eax, [ecx + 0x1704]
push eax
lea eax, [ecx + 0xdf04]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004136c0
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x406866
cmp eax, 0x1f4000
jb 0x406892
mov ecx, dword [0x43024c]
push 0x10
lea eax, [ecx + 0x1704]
push eax
lea eax, [ecx + 0xdf04]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004136c0
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x10
mov dword [0x42f1dc], eax
mov eax, dword [0x42f1e0]
push esi
mov dword [0x4300f0], edx
mov dword [0x42f1d4], eax
mov dword [0x42f1d8], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004136c0
mov esp, ebp
pop ebp
ret