joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fd0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov ecx, dword [ebp + 0x10]
xor edx, edx
push ebx
push esi
mov eax, dword [ecx + 4]
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dx, word [eax + 0x14]
lea eax, [edx + eax + 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx + 6]
cmp eax, edx
jge 0x402157
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x40208a
lea ecx, [ebp - 0x24]
push 0x42e848
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x36
call fcn.0040e223
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x402084
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push 4
push 0x1000
mov eax, dword [ebx + 0xc]
push esi
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0x402138
ret
lea eax, [ebp - 0x28]
push 0x42e848
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0x43
call fcn.0040e223
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x1c]
add edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
mov eax, 0x4020cc
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402170
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4275a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
mov eax, dword [eax]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], 0
mov cx, word [eax + 0x14]
lea edi, [ecx + eax + 0x18]
mov dword [ebp - 0x14], edi
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edx]
mov cx, word [eax + 6]
mov eax, dword [ebp - 0x20]
cmp eax, ecx
jge 0x4022f1
mov eax, dword [edi + 0x24]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x402217
lea edx, [ebp - 0x24]
push 0x42e848
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x4b
call fcn.0040e223
mov eax, dword [ebp - 0x14]
push 0x4000
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0x4022d5
ret
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov ecx, dword [edx*4 + 0x5580d8]
mov dword [ebp - 0x1c], ecx
je 0x402236
mov eax, ecx
or ah, 2
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x402298
lea edx, [ebp - 0x28]
push 0x42e848
push edx
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0x10
call fcn.0040e223
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x24]
test al, 0x40
je 0x402277
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x18], eax
mov eax, 0x40228c
ret
test al, 0x80
je 0x402286
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x18], eax
mov eax, 0x40228c
ret
jbe 0x4022dc
lea ecx, [ebp - 0x2c]
push 0x42e848
push ecx
mov dword [ebp - 4], 4
mov dword [ebp - 0x2c], 0xf
call fcn.0040e223
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x4022d5
ret
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
inc ecx
add edi, 0x28
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], edi
jmp 0x4021aa
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4026e0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push 0x558940
push 0x124000
push 0x4340d8
call fcn.00402690
push 0x4340d8
call fcn.00401bf0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x402725
mov eax, dword [esp + 0x10]
push eax
push ebx
call fcn.00401a10
add esp, 8
test eax, eax
jne 0x402729
push ebx
call fcn.004018b0
add esp, 4
pop edi
pop esi
pop ebx
ret
sub esp, 0x848
mov ecx, 0x212
mov esi, str.149.104.0.28
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call eax
push ebx
call fcn.004018b0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41a9c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040e330
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41aa8b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41aa8b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41aa3e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41aa49
or bh, 8
and edi, 0x8000000
je 0x41aa64
mov eax, dword [0x5602bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41aa8b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ae60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41ae8b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41aeaf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41aeca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41f46f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41f4a7
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.0041cac6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041ca9e
jmp 0x41f4b3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4209f1
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 0x420a33
call fcn.00424bac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x420a33
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x420a2a
xor eax, eax
jmp 0x420a3b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00420a41
pop edi
pop esi
pop ebx
ret 4
Function at 0x411ffe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x20c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, ecx
push esi
push edi
push str.FRAMEWORK
push 0x84
push dword [0x44239c]
call ebp
push eax
push dword [0x44239c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov ecx, 0x44236c
call fcn.0040b3c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x44236c]
xor edi, edi
test eax, eax
je 0x41205b
cmp word [eax], di
jne 0x41206a
mov edx, 0x438f30
mov ecx, 0x44236c
call fcn.0040b3c0
mov ecx, 0x442394
call fcn.0040b37e
lea edx, [esp + 0x10]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x41207a
lea ecx, [esp + 0x10]
call fcn.0040755f
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x412094
lea edi, [esp + 0x10]
sub ebx, esi
sub edi, 2
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x4120aa
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00407388
push str.FRAMEWORK
test eax, eax
je 0x4120dd
push 0x85
jmp 0x4120e2
push 0x86
push dword [0x44239c]
call ebp
push eax
push dword [0x44239c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x44238c
mov edx, eax
mov ecx, edi
call fcn.0040b3c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x44238c]
test eax, eax
je 0x412125
xor ecx, ecx
cmp word [eax], cx
jne 0x412143
lea ecx, [esp + 0x10]
call fcn.00407388
mov ecx, edi
mov edx, 0x4390c0
test eax, eax
jne 0x41213e
mov edx, 0x439258
call fcn.0040b3c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x404dc1
Capabilities:
Shutdown system

Disassembly:
call fcn.00428a90
push 2
mov eax, str.SeShutdownPrivilege
push eax
call fcn.00408e21
movsx eax, byte [esp + 4]
push eax
push 0
push 1
mov eax, str.Exit
push eax
push 0
call sub.ADVAPI32.dll_InitiateSystemShutdownW
xor eax, eax
ret 4
Function at 0x4057f7
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00428a90
push dword [esp + 0x20]
call fcn.00415400
mov dword [esp], 0
mov dword [esp + 4], 1
mov edx, 0x42c02e
lea ecx, [esp + 8]
call fcn.00415068
mov edx, 0x42c02e
lea ecx, [esp + 0xc]
call fcn.00415068
call sub.KERNEL32.dll_GetLogicalDrives
mov dword [esp + 0x10], eax
mov dword [esp], 0
jmp 0x40584b
mov eax, 0x19
cmp eax, dword [esp]
jl 0x4058a7
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 4]
mov ecx, dword [esp]
shl edi, cl
and ebx, edi
and ebx, ebx
je 0x4058a2
mov edx, dword [esp + 8]
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.00428980
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
mov ebx, dword [esp + 0xc]
add ebx, 0x41
push ebx
call fcn.004271f0
pop eax
lea eax, [esp + 0xc]
push eax
call fcn.004288f0
inc dword [esp]
jno 0x40584b
mov eax, 0x42cd66
push eax
call fcn.00427210
mov dword [esp], eax
jmp 0x4058b7
mov eax, 0x42cdd6
push eax
call fcn.00427210
cmp eax, dword [esp]
jl 0x405997
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
push dword [esp + 0xc]
call fcn.004271f0
call fcn.00428b50
push dword [esp + 0x10]
call fcn.004153e2
add dword [esp + 4], edx
call fcn.00426850
call fcn.00415400
and eax, eax
je 0x405910
xor eax, eax
jmp 0x405915
mov eax, 1
and eax, eax
je 0x40598e
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
push dword [esp + 0xc]
call fcn.004271f0
mov edx, 0x42c1d6
push edx
call fcn.00428980
call fcn.004153e2
add dword [esp], edx
call sub.KERNEL32.dll_GetDriveTypeW
call fcn.00415400
mov ebx, eax
cmp ebx, 1
jne 0x40598e
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
push dword [esp + 8]
call fcn.004271f0
mov edx, 0x42c1d6
push edx
call fcn.00428980
lea eax, [esp + 0x10]
push eax
call fcn.004288f0
jmp 0x405997
inc dword [esp]
jno 0x4058b7
mov edx, dword [esp + 0xc]
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.00428980
pop eax
push eax
call fcn.004153d0
pop edx
add eax, edx
jmp 0x4059bf
push dword [esp + 0xc]
call fcn.00428b20
push dword [esp + 8]
call fcn.00428b20
add esp, 0x14
pop edi
pop ebx
ret

Function at 0x409b75
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
call fcn.00428a90
push dword [esp + 0x10]
call fcn.00415400
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
push 0x104
call fcn.00426280
lea eax, [esp + 8]
push eax
call fcn.004288f0
lea eax, [esp]
push eax
push 0
push 0
push dword [esp + 0x18]
push 0
call sub.SHELL32.dll_SHGetFolderLocation
mov eax, dword [esp + 4]
push eax
push dword [esp + 4]
call sub.SHELL32.dll_SHGetPathFromIDListW
mov edx, dword [esp + 4]
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.00428980
pop eax
push eax
call fcn.004153d0
pop edx
add eax, edx
jmp 0x409bfd
push dword [esp + 4]
call fcn.00428b20
add esp, 8
ret 4
Function at 0x40ab1c
Capabilities:
Get disk information

Disassembly:
push ebp
push ebx
push edi
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40ab24
call fcn.00428a90
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
push 0x104
call fcn.00426280
lea eax, [esp + 0x10]
push eax
call fcn.004288f0
lea eax, [esp + 0x10]
mov edx, 0x42c02e
push edx
push 3
push eax
call fcn.00428a20
lea eax, [esp + 0x18]
mov edx, 0x42c02e
push edx
push 7
push eax
call fcn.00428a20
mov dword [esp + 0x28], 0
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0xc]
push eax
push 0x104
call sub.KERNEL32.dll_GetLogicalDriveStringsW
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
jmp 0x40abae
mov ebx, dword [esp + 0x28]
mov eax, ebx
mov ecx, 4
cdq
idiv ecx
mov ebx, eax
dec ebx
cmp ebx, dword [esp + 0x2c]
jl 0x40acb1
push 0
push 0xc
lea eax, [esp + 8]
push eax
call fcn.00427a10
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
mov eax, dword [esp + 0x14]
mov ebx, eax
mov edi, dword [esp + 0x34]
shl edi, 2
add edi, edi
add ebx, edi
push ebx
call fcn.004279c0
lea eax, [esp + 0x14]
push 3
push eax
call fcn.004289e0
push edx
call fcn.004288b0
pop edx
push eax
mov edx, str.._
push edx
call fcn.00428980
lea edx, [esp + 0x14]
push 3
push edx
call fcn.00428b80
lea eax, [esp + 0x1c]
push 7
push eax
call fcn.004289e0
push edx
call fcn.004288b0
pop edx
push eax
lea eax, [esp + 4]
push eax
lea edx, [esp + 0x20]
push edx
call fcn.004288b0
pop edx
push eax
push 7
push edx
call fcn.00428b80
call fcn.004153e2
add dword [esp], edx
call fcn.0040aef2
call fcn.00415400
and eax, eax
je 0x40aca7
lea ebp, [esp]
mov ebx, dword [ebp + 4]
cmp ebx, dword [esp + 0x44]
jne 0x40ac9a
mov ebx, dword [ebp + 8]
cmp ebx, dword [esp + 0x48]
jne 0x40ac9a
mov eax, 1
jmp 0x40ac9c
xor eax, eax
and eax, eax
je 0x40aca7
mov byte [esp + 0x30], 1
jmp 0x40acb1
inc dword [esp + 0x2c]
jno 0x40abae
movsx eax, byte [esp + 0x30]
movsx eax, al
jmp 0x40acbd
push dword [esp + 0xc]
call fcn.00428b20
add esp, 0x34
pop edi
pop ebx
pop ebp
ret 8

Function at 0x40aef2
Capabilities:
Get disk information via ioctl

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00428a90
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.00415060
mov byte [esp + 0xc], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.00403dc8
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
cmp ebx, 0xffffffff
je 0x40af6c
push 0
lea eax, [esp + 8]
push eax
push 0xc
push dword [esp + 0x28]
push 0
push 0
push 0x2d1080
push dword [esp + 0x24]
call sub.KERNEL32.dll_DeviceIoControl
mov byte [esp + 0xc], al
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0xc]
movsx eax, al
jmp 0x40af78
push dword [esp]
call fcn.00428b20
add esp, 0x10
pop ebx
ret 8
Function at 0x40bbc6
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
mov edx, 0x3b
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40bbcb
call fcn.00428a90
push dword [esp + 0xf0]
call sub.USER32.dll_GetWindowDC
mov dword [esp + 0xe0], eax
push dword [esp + 0xe0]
call sub.GDI32.dll_CreateCompatibleDC
mov dword [esp + 0xe4], eax
push dword [esp + 0x100]
push dword [esp + 0x100]
push dword [esp + 0xe8]
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [esp + 0xe8], eax
push dword [esp + 0xe8]
push dword [esp + 0xe8]
call sub.GDI32.dll_SelectObject
push 0xcc0020
push dword [esp + 0xfc]
push dword [esp + 0xfc]
push dword [esp + 0xec]
push dword [esp + 0x110]
push dword [esp + 0x110]
push 0
push 0
push dword [esp + 0x104]
call sub.GDI32.dll_BitBlt
push 0
call sub.USER32.dll_OpenClipboard
call sub.USER32.dll_EmptyClipboard
push dword [esp + 0xe8]
push 2
call sub.USER32.dll_SetClipboardData
call sub.USER32.dll_CloseClipboard
push dword [esp + 0xe4]
call sub.GDI32.dll_DeleteDC
push dword [esp + 0xe0]
push dword [esp + 0xec]
call sub.USER32.dll_ReleaseDC
xor eax, eax
add esp, 0xec
ret 0x18

Function at 0x40c232
Capabilities:
Get disk information

Disassembly:
mov edx, 0x83
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40c237
call fcn.00428a90
push dword [esp + 0x214]
call fcn.00415400
mov edx, dword [esp + 0x210]
lea ecx, [esp]
call fcn.00415060
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
push 0x104
call fcn.00426280
lea eax, [esp + 8]
push 0x104
push eax
call fcn.004289e0
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
mov eax, 0x42c1d6
push eax
mov eax, 0x42ecd4
push eax
push dword [esp + 0x10]
call fcn.00426f80
lea eax, [esp + 4]
push eax
call fcn.004288f0
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
mov eax, 0x42cdea
push eax
mov eax, 0x42f8ba
push eax
push dword [esp + 0x10]
call fcn.00426f80
lea eax, [esp + 4]
push eax
call fcn.004288f0
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
mov eax, 0x42c02e
push eax
mov eax, str.__
push eax
push dword [esp + 0x10]
call fcn.00426f80
lea eax, [esp + 4]
push eax
call fcn.004288f0
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
mov eax, 0x42c02e
push eax
mov eax, str.._
push eax
push dword [esp + 0x10]
call fcn.00426f80
lea eax, [esp + 4]
push eax
call fcn.004288f0
push 0x104
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_QueryDosDeviceW
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
lea edx, [esp + 0xc]
push edx
call fcn.004288b0
pop edx
push eax
push 0x104
push edx
call fcn.00428b80
call fcn.004153e2
add dword [esp], edx
call fcn.00426370
pop eax
push eax
call fcn.004153d0
pop edx
add eax, edx
jmp 0x40c3a6
push dword [esp]
call fcn.00428b20
add esp, 0x20c
ret 4
Function at 0x40e71f
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40e726
call fcn.00428a90
push dword [esp + 0x2c]
call fcn.00415400
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00415060
mov dword [esp + 8], 0
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
push 0x104
call fcn.00426280
lea eax, [esp + 0x10]
push eax
call fcn.004288f0
lea eax, [esp + 0x10]
mov edx, 0x42c02e
push edx
push 3
push eax
call fcn.00428a20
mov edx, 0x42c02e
lea ecx, [esp + 0x18]
call fcn.00415068
mov eax, dword [esp + 0xc]
push eax
push 0x104
call sub.KERNEL32.dll_GetLogicalDriveStringsW
mov dword [esp + 8], eax
mov dword [esp + 4], 0
jmp 0x40e7b9
mov ebx, dword [esp + 8]
mov eax, ebx
mov ecx, 4
cdq
idiv ecx
mov ebx, eax
dec ebx
cmp ebx, dword [esp + 4]
jl 0x40e854
push edx
call fcn.004288b0
pop edx
push eax
push edx
call fcn.004288b0
pop edx
push eax
mov eax, dword [esp + 0x14]
mov ebx, eax
mov edi, dword [esp + 0xc]
shl edi, 2
add edi, edi
add ebx, edi
push ebx
call fcn.004279c0
lea eax, [esp + 0x14]
push 3
push eax
call fcn.004289e0
push dword [esp]
push edx
call fcn.004288b0
pop edx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.004288b0
pop edx
push eax
push 3
push edx
call fcn.00428b80
call fcn.004153e2
add dword [esp], edx
call fcn.0040c232
call fcn.00415410
mov edx, eax
pop ecx
call fcn.00415420
je 0x40e84a
jmp 0x40e854
inc dword [esp + 4]
jno 0x40e7b9
lea edx, [esp + 0x10]
push edx
call fcn.004288b0
pop edx
push eax
push 3
push edx
call fcn.00428b80
pop eax
push eax
call fcn.004153d0
pop edx
add eax, edx
jmp 0x40e881
push dword [esp]
call fcn.00428b20
push dword [esp + 0xc]
call fcn.00428b20
push dword [esp + 0x18]
call fcn.00428b20
add esp, 0x1c
pop edi
pop ebx
ret 4