joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001588
push 0x1005738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x100dd30], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x100dd2c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x100dd28], ecx
shr eax, 0x10
mov dword [0x100dd24], eax
call fcn.010056f0
test eax, eax
jne 0x1003daa
push 0x1c
call fcn.01003f10
add esp, 4
mov dword [ebp - 4], 0
call fcn.010054f0
call fcn.010054e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100e270], eax
call fcn.01004ea0
mov dword [0x100dd04], eax
test eax, eax
je 0x1003ddd
mov eax, dword [0x100e270]
test eax, eax
jne 0x1003de7
push 0xffffffffffffffff
call fcn.01004800
add esp, 4
call fcn.01004bf0
call fcn.01004b00
call fcn.010047d0
mov esi, dword [0x100e270]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x1003ec6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x1003e2e
test al, al
je 0x1003e2e
and eax, 0xff
push eax
call fcn.01004aa0
add esp, 4
test eax, eax
je 0x1003e08
inc esi
mov dword [ebp - 0x64], esi
jmp 0x1003e08
cmp byte [esi], 0x22
jne 0x1003e37
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x1003e47
cmp al, 0x20
ja 0x1003e47
inc esi
mov dword [ebp - 0x64], esi
jmp 0x1003e37
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x1003e68
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x1003e6d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.01004800
jmp 0x1003eab
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x1003e37
inc esi
mov dword [ebp - 0x64], esi
jmp 0x1003ec6

Function at 0x1003f10
Capabilities:
Terminate process

Disassembly:
cmp dword [0x100dd0c], 1
jne 0x1003f1e
call fcn.01005810
mov eax, dword [esp + 4]
push eax
call fcn.01005850
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1004840
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x100dd60]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x100485f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x100dd5c], 1
mov byte [0x100dd58], bl
jne 0x10048b9
mov ecx, dword [0x100e26c]
test ecx, ecx
je 0x10048a7
mov esi, dword [0x100e268]
sub esi, 4
cmp esi, ecx
jb 0x10048a7
mov eax, dword [esi]
test eax, eax
je 0x10048a0
call eax
mov ecx, dword [0x100e26c]
sub esi, 4
cmp esi, ecx
jae 0x1004892
push 0x100b01c
push 0x100b018
call fcn.010048f0
add esp, 8
push 0x100b028
push 0x100b020
call fcn.010048f0
add esp, 8
test ebx, ebx
jne 0x10048e0
push ebp
mov dword [0x100dd60], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x1004ea0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x100de70]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x1004ee2
call edi
mov esi, eax
test esi, esi
je 0x1004ecc
mov eax, 1
jmp 0x1004edd
call ebp
mov ebx, eax
test ebx, ebx
je 0x1004fef
mov eax, 2
mov dword [0x100de70], eax
cmp eax, 1
jne 0x1004f82
test esi, esi
jne 0x1004efb
call edi
mov esi, eax
test esi, esi
je 0x1004fef
cmp word [esi], 0
mov eax, esi
je 0x1004f15
add eax, 2
cmp word [eax], 0
jne 0x1004f03
add eax, 2
cmp word [eax], 0
jne 0x1004f03
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1004f74
push edi
call fcn.01004610
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1004f74
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1004f66
push ebx
call fcn.010046c0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x1004fef
test ebx, ebx
jne 0x1004f93
call ebp
mov ebx, eax
test ebx, ebx
je 0x1004fef
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x1004fab
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1004f9b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1004f9b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.01004610
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1004fcd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x1005850
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x100b670
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x1005874
add eax, 8
inc ebp
cmp eax, 0x100b700
jb 0x1005865
cmp ecx, dword [ebp*8 + 0x100b670]
jne 0x1005a1b
mov eax, dword [0x100dd0c]
cmp eax, 1
je 0x10059dd
test eax, eax
jne 0x10058a0
cmp dword [0x100b4a8], 1
je 0x10059dd
cmp ecx, 0xfc
je 0x1005a1b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10058db
mov ecx, 5
mov esi, 0x100186c
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x1005924
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x1001868
add ebx, ecx
push ebx
call fcn.010078c0
add esp, 0xc
mov ecx, 6
mov esi, 0x100184c
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001848
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1001820
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 edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x100b674]
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 + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.01007830
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x100e160]
test eax, eax
je 0x10059ee
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x10059f8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x100b674]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40673a
pop dword [ebp - 0x14]
mov eax, 0x40673a
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xc2081648
add dword [ebp - 0x24], 0x8c4a2f03
mov dword [ebp - 0x20], 0xa5aa4ccd
add dword [ebp - 0x20], 0x8c88ff78
mov dword [ebp - 0x1c], 0xe328526b
add dword [ebp - 0x1c], 0x6923f1c3
mov dword [ebp - 0x18], 0x24e83f
add dword [ebp - 0x18], 0xffdb17c1
lea eax, [ebp - 0x24]
push eax
mov eax, 0x75232cf
add eax, 0xf8ee4e35
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x2a5b36c6
add dword [ebp - 0x24], 0x4a173290
mov dword [ebp - 0x20], 0x28989f3f
sub dword [ebp - 0x20], 0xe72c3dca
mov dword [ebp - 0x1c], 0x9a6ac91c
add dword [ebp - 0x1c], 0xc904a350
mov dword [ebp - 0x18], 0xbfd0f6c1
sub dword [ebp - 0x18], 0xbfd0f6c1
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x39571
push 0
call eax
mov ecx, 0xdca4549b
sub ecx, 0xdca4054f
mov edi, eax
mov ebx, 0x46e400
add ebx, dword [ebp - 0x14]
mov esi, 0xa7057f9c
add esi, 0x42c424fa
mov dword [ebp - 8], 0x8160f834
mov edx, dword [ebx]
mov dword [ebp - 8], 0x1a6d46b8
sub edx, esi
xor dword [ebp - 8], 0xf0abdf82
mov dword [edi], edx
xor dword [ebp - 0xc], edx
add edi, 4
add ebx, 4
loop 0x40684c
add eax, 0x13003
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x404df6
Capabilities:
Shutdown system

Disassembly:
call fcn.0042bdd0
push 2
mov eax, str.SeShutdownPrivilege
push eax
call fcn.00408e7f
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 0x40582c
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042bdd0
push dword [esp + 0x20]
call fcn.00416410
mov dword [esp], 0
mov dword [esp + 4], 1
mov edx, 0x42f02e
lea ecx, [esp + 8]
call fcn.00416068
mov edx, 0x42f02e
lea ecx, [esp + 0xc]
call fcn.00416068
call sub.KERNEL32.dll_GetLogicalDrives
mov dword [esp + 0x10], eax
mov dword [esp], 0
jmp 0x405880
mov eax, 0x19
cmp eax, dword [esp]
jl 0x4058dc
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 4]
mov ecx, dword [esp]
shl edi, cl
and ebx, edi
and ebx, ebx
je 0x4058d7
mov edx, dword [esp + 8]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov ebx, dword [esp + 0xc]
add ebx, 0x41
push ebx
call fcn.0042a520
pop eax
lea eax, [esp + 0xc]
push eax
call fcn.0042bc30
inc dword [esp]
jno 0x405880
mov eax, 0x42fd44
push eax
call fcn.0042a540
mov dword [esp], eax
jmp 0x4058ec
mov eax, 0x42fdb4
push eax
call fcn.0042a540
cmp eax, dword [esp]
jl 0x4059cc
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042a520
call fcn.0042be90
push dword [esp + 0x10]
call fcn.004163f2
add dword [esp + 4], edx
call fcn.00429b80
call fcn.00416410
and eax, eax
je 0x405945
xor eax, eax
jmp 0x40594a
mov eax, 1
and eax, eax
je 0x4059c3
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042a520
mov edx, 0x42f1b4
push edx
call fcn.0042bcc0
call fcn.004163f2
add dword [esp], edx
call sub.KERNEL32.dll_GetDriveTypeW
call fcn.00416410
mov ebx, eax
cmp ebx, 1
jne 0x4059c3
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push dword [esp + 8]
call fcn.0042a520
mov edx, 0x42f1b4
push edx
call fcn.0042bcc0
lea eax, [esp + 0x10]
push eax
call fcn.0042bc30
jmp 0x4059cc
inc dword [esp]
jno 0x4058ec
mov edx, dword [esp + 0xc]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
pop eax
push eax
call fcn.004163e0
pop edx
add eax, edx
jmp 0x4059f4
push dword [esp + 0xc]
call fcn.0042be60
push dword [esp + 8]
call fcn.0042be60
add esp, 0x14
pop edi
pop ebx
ret

Function at 0x409bd3
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0042bdd0
push dword [esp + 0x10]
call fcn.00416410
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
call fcn.004295b0
lea eax, [esp + 8]
push eax
call fcn.0042bc30
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.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
pop eax
push eax
call fcn.004163e0
pop edx
add eax, edx
jmp 0x409c5b
push dword [esp + 4]
call fcn.0042be60
add esp, 8
ret 4
Function at 0x40abce
Capabilities:
Get disk information

Disassembly:
push ebp
push ebx
push edi
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40abd6
call fcn.0042bdd0
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
call fcn.004295b0
lea eax, [esp + 0x10]
push eax
call fcn.0042bc30
lea eax, [esp + 0x10]
mov edx, 0x42f02e
push edx
push 3
push eax
call fcn.0042bd60
lea eax, [esp + 0x18]
mov edx, 0x42f02e
push edx
push 7
push eax
call fcn.0042bd60
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 0x40ac60
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 0x40ad63
push 0
push 0xc
lea eax, [esp + 8]
push eax
call fcn.0042ad40
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
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.0042acf0
lea eax, [esp + 0x14]
push 3
push eax
call fcn.0042bd20
push edx
call fcn.0042bbf0
pop edx
push eax
mov edx, str.._
push edx
call fcn.0042bcc0
lea edx, [esp + 0x14]
push 3
push edx
call fcn.0042bec0
lea eax, [esp + 0x1c]
push 7
push eax
call fcn.0042bd20
push edx
call fcn.0042bbf0
pop edx
push eax
lea eax, [esp + 4]
push eax
lea edx, [esp + 0x20]
push edx
call fcn.0042bbf0
pop edx
push eax
push 7
push edx
call fcn.0042bec0
call fcn.004163f2
add dword [esp], edx
call fcn.0040b004
call fcn.00416410
and eax, eax
je 0x40ad59
lea ebp, [esp]
mov ebx, dword [ebp + 4]
cmp ebx, dword [esp + 0x44]
jne 0x40ad4c
mov ebx, dword [ebp + 8]
cmp ebx, dword [esp + 0x48]
jne 0x40ad4c
mov eax, 1
jmp 0x40ad4e
xor eax, eax
and eax, eax
je 0x40ad59
mov byte [esp + 0x30], 1
jmp 0x40ad63
inc dword [esp + 0x2c]
jno 0x40ac60
movsx eax, byte [esp + 0x30]
movsx eax, al
jmp 0x40ad6f
push dword [esp + 0xc]
call fcn.0042be60
add esp, 0x34
pop edi
pop ebx
pop ebp
ret 8

Function at 0x40b004
Capabilities:
Get disk information via ioctl

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.0042bdd0
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.00416060
mov byte [esp + 0xc], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.00403dfd
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
cmp ebx, 0xffffffff
je 0x40b07e
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 0x40b08a
push dword [esp]
call fcn.0042be60
add esp, 0x10
pop ebx
ret 8
Function at 0x40bcd8
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
mov edx, 0x3b
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40bcdd
call fcn.0042bdd0
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 0x40c344
Capabilities:
Get disk information

Disassembly:
mov edx, 0x83
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40c349
call fcn.0042bdd0
push dword [esp + 0x214]
call fcn.00416410
mov edx, dword [esp + 0x210]
lea ecx, [esp]
call fcn.00416060
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
call fcn.004295b0
lea eax, [esp + 8]
push 0x104
push eax
call fcn.0042bd20
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42f1b4
push eax
mov eax, 0x431c72
push eax
push dword [esp + 0x10]
call fcn.0042a2b0
lea eax, [esp + 4]
push eax
call fcn.0042bc30
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42fdc8
push eax
mov eax, 0x4328f4
push eax
push dword [esp + 0x10]
call fcn.0042a2b0
lea eax, [esp + 4]
push eax
call fcn.0042bc30
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42f02e
push eax
mov eax, str.__
push eax
push dword [esp + 0x10]
call fcn.0042a2b0
lea eax, [esp + 4]
push eax
call fcn.0042bc30
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42f02e
push eax
mov eax, str.._
push eax
push dword [esp + 0x10]
call fcn.0042a2b0
lea eax, [esp + 4]
push eax
call fcn.0042bc30
push 0x104
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_QueryDosDeviceW
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
lea edx, [esp + 0xc]
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
push edx
call fcn.0042bec0
call fcn.004163f2
add dword [esp], edx
call fcn.004296a0
pop eax
push eax
call fcn.004163e0
pop edx
add eax, edx
jmp 0x40c4b8
push dword [esp]
call fcn.0042be60
add esp, 0x20c
ret 4
Function at 0x40eaf7
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40eafe
call fcn.0042bdd0
push dword [esp + 0x2c]
call fcn.00416410
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00416060
mov dword [esp + 8], 0
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
call fcn.004295b0
lea eax, [esp + 0x10]
push eax
call fcn.0042bc30
lea eax, [esp + 0x10]
mov edx, 0x42f02e
push edx
push 3
push eax
call fcn.0042bd60
mov edx, 0x42f02e
lea ecx, [esp + 0x18]
call fcn.00416068
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 0x40eb91
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 0x40ec2c
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
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.0042acf0
lea eax, [esp + 0x14]
push 3
push eax
call fcn.0042bd20
push dword [esp]
push edx
call fcn.0042bbf0
pop edx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.0042bbf0
pop edx
push eax
push 3
push edx
call fcn.0042bec0
call fcn.004163f2
add dword [esp], edx
call fcn.0040c344
call fcn.00416420
mov edx, eax
pop ecx
call fcn.00416430
je 0x40ec22
jmp 0x40ec2c
inc dword [esp + 4]
jno 0x40eb91
lea edx, [esp + 0x10]
push edx
call fcn.0042bbf0
pop edx
push eax
push 3
push edx
call fcn.0042bec0
pop eax
push eax
call fcn.004163e0
pop edx
add eax, edx
jmp 0x40ec59
push dword [esp]
call fcn.0042be60
push dword [esp + 0xc]
call fcn.0042be60
push dword [esp + 0x18]
call fcn.0042be60
add esp, 0x1c
pop edi
pop ebx
ret 4
Function at 0x40fbd8
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40fbdf
call fcn.0042bdd0
push dword [esp + 0x30]
call fcn.00416410
mov edx, dword [esp + 0x2c]
lea ecx, [esp]
call fcn.00416060
mov dword [esp + 4], 0
mov edx, 0x42f02e
lea ecx, [esp + 8]
call fcn.00416068
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
call fcn.004295b0
lea eax, [esp + 0x10]
push eax
call fcn.0042bc30
mov edx, 0x42f02e
lea ecx, [esp + 0x10]
call fcn.00416068
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
push 0
call sub.KERNEL32.dll_SetLastError
add dword [esp + 0x1c], 0x6400
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push dword [esp + 0x24]
call fcn.004295b0
lea eax, [esp + 0x14]
push eax
call fcn.0042bc30
push dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push eax
push 0
call sub.KERNEL32.dll_QueryDosDeviceW
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0x7a
je 0x40fc66
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x18]
add edi, edi
cmp ebx, edi
jge 0x40fdaa
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, dword [esp + 0x18]
mov ebx, eax
add ebx, dword [esp + 0xc]
push ebx
call fcn.0042acf0
lea eax, [esp + 0x10]
push eax
call fcn.0042bc30
push 1
push dword [esp + 4]
push dword [esp + 0x14]
call fcn.00429ac0
and eax, eax
je 0x40fd8d
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 1
mov eax, 0x42f02e
push eax
push dword [esp + 0x14]
push dword [esp + 0x24]
call fcn.00429f50
call fcn.004163f2
add dword [esp], edx
call fcn.0040f519
call fcn.00416410
and eax, eax
je 0x40fd8d
mov edx, dword [esp + 8]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
mov edx, 0x4329f0
push edx
call fcn.0042bcc0
mov edx, dword [esp + 0x10]
push edx
call fcn.0042bcc0
lea eax, [esp + 0xc]
push eax
call fcn.0042bc30
mov ebx, dword [esp + 4]
push dword [esp + 0xc]
call fcn.004296c0
mov edi, eax
inc edi
add edi, edi
add ebx, edi
mov dword [esp + 4], ebx
jmp 0x40fcc4
push dword [esp + 8]
call fcn.004296c0
mov ebx, eax
cmp ebx, 2
jle 0x40fe0c
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42f04e
push eax
push dword [esp + 0x14]
call fcn.00429ba0
lea eax, [esp + 0xc]
push eax
call fcn.0042bc30
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42f04a
push eax
push dword [esp + 0x14]
call fcn.00429ba0
lea eax, [esp + 0xc]
push eax
call fcn.0042bc30
mov edx, dword [esp + 8]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
pop eax
push eax
call fcn.004163e0
pop edx
add eax, edx
jmp 0x40fe34
push dword [esp + 8]
call fcn.0042be60
push dword [esp]
call fcn.0042be60
push dword [esp + 0x10]
call fcn.0042be60
push dword [esp + 0xc]
call fcn.0042be60
add esp, 0x20
pop edi
pop ebx
ret 4