joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410628
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x478010]
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.0040c1b5
mov dword [ebp - 0x14], eax
cmp dword [0x47a378], esi
jne 0x41071b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4106a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4107fb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4107fb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4107fb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47a378], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47a37c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47a380], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47a388], eax
test eax, eax
je 0x410718
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47a384], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410740
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410733
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410755
push 4
pop eax
jmp 0x4107fd
cmp dword [ebp - 0x14], esi
je 0x410755
push dword [0x47a378]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41073a
mov eax, dword [0x47a384]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4107b3
cmp dword [0x47a388], edi
je 0x4107b3
push eax
call ebx
push dword [0x47a388]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4107b3
test eax, eax
je 0x4107b3
call ecx
test eax, eax
je 0x4107a8
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 0x4107a8
test byte [ebp - 8], 1
jne 0x4107b3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4107e3
mov eax, dword [0x47a37c]
cmp eax, edi
je 0x4107e0
push eax
call ebx
test eax, eax
je 0x4107e0
call eax
mov esi, eax
test esi, esi
je 0x4107e0
mov eax, dword [0x47a380]
cmp eax, edi
je 0x4107e0
push eax
call ebx
test eax, eax
je 0x4107e0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47a378]
call ebx
test eax, eax
je 0x4107fb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4107fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a5ce
mov esp, ebp
pop ebp
ret
Function at 0x4027f4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403db4
test esi, esi
jne 0x40282a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403ea4
jmp 0x402848
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026a8
mov edi, eax
test esi, esi
je 0x402848
cmp dword [ebx], 0
je 0x402848
dec esi
jmp 0x402831
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40900c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40338c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40336c
xor eax, eax
push ebp
push 0x403365
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4033a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40336c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40900c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40900c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403c38
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x403c99
cmp word [0x40a218], 0xd7b2
jne 0x403c61
cmp dword [0x40a220], 0
jbe 0x403c61
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409050
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403cc0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409018], 0
jne 0x403cb5
push 0
push 0x409070
push 0x409050
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4046c0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4048f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404743
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4048f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404743
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40490c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4047cc
xor eax, eax
push ebp
push 0x4047c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404508
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4047aa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40492c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4047aa
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047cc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4048e6
cmp byte [ebp - 0xd], 0
jne 0x404813
cmp byte [ebp - 0x12], 0
je 0x4048e6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40482c
dec ebx
cmp byte [ebx], 0x2e
je 0x40483b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40482b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4048e6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404878
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4048e6
cmp byte [ebp - 0xd], 0
je 0x4048e6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4048e6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4047cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4048f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404743
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4048f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404743
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40490c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4047cc
xor eax, eax
push ebp
push 0x4047c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404508
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4047aa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40492c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4047aa
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047cc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4048e6
cmp byte [ebp - 0xd], 0
jne 0x404813
cmp byte [ebp - 0x12], 0
je 0x4048e6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40482c
dec ebx
cmp byte [ebx], 0x2e
je 0x40483b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40482b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4048e6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404878
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4048e6
cmp byte [ebp - 0xd], 0
je 0x4048e6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4048e6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406720
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406759
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ea4
jmp 0x406762
mov eax, ebx
mov edx, esi
call fcn.00403e08
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40676c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40678d
mov al, byte [esp]
jmp 0x40678f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406e14
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406c8c
mov eax, dword [0x40939c]
cmp byte [eax], 0
je 0x406e7c
mov eax, dword [0x4092f4]
call fcn.00402b64
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405b78
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406ec4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406eb2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092d8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a710]
call fcn.004044cc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x407844
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4078a8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403ff8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405a4c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4078af
lea eax, [ebp - 0xc]
call fcn.00403db4
ret
Function at 0x4013a2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
lea ebx, [eax + edi + 0x78]
mov eax, dword [ebx]
test eax, eax
je 0x401451
cmp dword [ebx + 4], 0x28
jb 0x401451
lea esi, [eax + edi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x401451
mov edx, dword [esi + 0x20]
cmp edx, eax
jb 0x401451
lea edx, [edx + ecx*4]
mov ecx, dword [ebx + 4]
add ecx, eax
cmp ecx, edx
jb 0x401451
mov eax, dword [esi + 0x20]
and dword [ebp + 8], 0
add eax, edi
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x1c]
add eax, edi
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x24]
add eax, edi
cmp dword [esi + 0x18], 0
mov dword [ebp - 0xc], eax
jbe 0x401451
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
lea eax, [eax + ecx*4]
mov ecx, dword [ebx]
cmp ecx, dword [eax]
ja 0x401446
mov eax, dword [eax]
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
call dword [0x4620302c]
mov edx, dword [ebx]
mov ecx, dword [ebp - 8]
add edx, dword [ebx + 4]
lea eax, [eax + ecx + 1]
cmp eax, edx
ja 0x401446
push dword [ebp + 0xc]
lea eax, [ecx + edi]
push eax
call dword [0x46203028]
test eax, eax
je 0x401458
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x401408
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp + 8]
cmp dword [esi + 0x14], ecx
jbe 0x401451
mov esi, dword [esi + 0x1c]
mov eax, dword [ebx]
cmp esi, eax
jb 0x401451
lea edx, [esi + ecx*4 + 4]
mov esi, dword [ebx + 4]
add esi, eax
cmp esi, edx
jb 0x401451
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax*4]
jmp 0x401453

Function at 0x402320
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov bl, byte [eax]
push esi
cmp bl, 0xd8
je 0x402351
cmp bl, 0xd7
je 0x402351
mov esi, dword [esp + 0x14]
lea ecx, [eax + 1]
test esi, esi
jle 0x402379
mov eax, dword [esp + 0x10]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
sub esi, 1
jne 0x402343
pop esi
pop ebx
ret
mov esi, dword [esp + 0x10]
push esi
inc eax
push eax
call fcn.0040239e
cmp bl, 0xd8
jne 0x402379
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jle 0x402379
lea esp, [esp]
xor byte [eax + esi], 0xf0
inc eax
cmp eax, ecx
jl 0x402370
pop esi
pop ebx
ret

Function at 0x40892d
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
sub eax, eax
call fcn.00408956
dec edx
sub edx, eax
xor dword [ecx], ebx
add edx, eax
inc ecx
sub edx, 0xcd54c72f
sub eax, 1
cmp ecx, edi
jne fcn.0040892d
add edx, edx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43b63a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop ecx
or esi, edx
and esi, esi
call fcn.0043b677
inc esi
add esi, 0x4f1378f8
sub edx, 0x6be6f38c
xor dword [edi], ecx
sub esi, 0x99c653ee
inc edx
inc edi
add esi, 0x4ecb23b0
sub edx, edx
cmp edi, eax
jne fcn.0043b63a
and edx, edx
add edx, esi
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x243d521e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..tls
nop
mov ebx, 0x42f314
nop
mov ecx, 0x721c22bc
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4023f0
Capabilities:
Get common file path
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 0x404ee0
Capabilities:
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