joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4721a0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.00471130
test eax, eax
je 0x4721b6
xor eax, eax
jmp 0x472255
mov dword [ebp - 0xc], 0
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 8], eax
push 0x8000
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push closesocket
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp dword [ebp - 4], 0xffffffff
je 0x472252
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x472248
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4727e0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
push 0
push 0
push 3
push 0
push 1
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4728aa
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4728a0
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x472896
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x47288c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0x4550
jne 0x47288c
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x20b
jne 0x47288c
mov dword [ebp - 8], 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x472e50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5136f0
push 0x488848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.00471240
test eax, eax
jne 0x472ec5
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x472ec5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
je 0x472ec5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x472ef1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x473290
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x110]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0x4fe32c
push 0x4fe320
call fcn.00475800
add esp, 0x14
push 1
lea eax, [ebp - 0x110]
push eax
call fcn.00475610
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x473332
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x473322
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov dword [ebp - 0x114], 1
jmp 0x473328
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x114]
mov esp, ebp
pop ebp
ret 4

Function at 0x474f30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [0x51f03c], 0xffffffff
jne 0x474fac
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.004868c0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x114], 6
ja 0x474f96
cmp dword [ebp - 0x114], 6
jne 0x474f8a
cmp dword [ebp - 0x110], 1
ja 0x474f96
mov dword [ebp - 0x11c], 0
jmp 0x474fa0
mov dword [ebp - 0x11c], 1
mov edx, dword [ebp - 0x11c]
mov dword [0x51f03c], edx
xor eax, eax
cmp dword [0x51f03c], 1
sete al
mov esp, ebp
pop ebp
ret
Function at 0x47cdd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [0x525e54], 0
je 0x47cdeb
cmp dword [0x525e58], 0
jne 0x47ce3e
push 1
push 0x4fe864
call fcn.004734f0
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ecx, dword [ebp - 8]
add ecx, 0xa
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
je 0x47ce3c
mov edx, dword [0x525e50]
sub edx, dword [ebp - 8]
sub edx, 0xe
mov eax, dword [ebp - 8]
mov dword [eax + 0xa], edx
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 4
mov eax, dword [ebp - 8]
add eax, 0xa
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
jmp 0x47ce49
push 0x47cae0
call dword [0x525e58]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esp, ebp
pop ebp
ret 4

Function at 0x4822c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x51f584]
jne 0x4822d3
repz ret
jmp fcn.0048a47e
Function at 0x48f56c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048a697
and dword [ebp - 0x14], 0
cmp dword [0x52624c], 0
mov dword [ebp - 0x18], eax
jne 0x48f61f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48f6c7
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48f6c7
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x52624c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x526250], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x526254], eax
call edi
push eax
call esi
mov dword [0x52625c], eax
test eax, eax
je 0x48f61f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x526258], eax
mov eax, dword [0x526258]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x48f678
cmp dword [0x52625c], ecx
je 0x48f678
push eax
call esi
push dword [0x52625c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48f678
test ebx, ebx
je 0x48f678
call edi
test eax, eax
je 0x48f66f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48f66f
test byte [ebp - 8], 1
jne 0x48f678
or dword [ebp + 0x10], 0x200000
jmp 0x48f6ab
mov eax, dword [0x526250]
cmp eax, dword [ebp - 0x18]
je 0x48f6ab
push eax
call esi
test eax, eax
je 0x48f6ab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48f6ab
mov eax, dword [0x526254]
cmp eax, dword [ebp - 0x18]
je 0x48f6ab
push eax
call esi
test eax, eax
je 0x48f6ab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x52624c]
call esi
test eax, eax
je 0x48f6c7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48f6c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004822c9
leave
ret

Function at 0x49cd30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, edx
push esi
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49cd40
sub eax, esi
add eax, edx
mov ecx, 0x811c9dc5
cmp edx, eax
je 0x49cd64
movsx esi, byte [edx]
imul ecx, ecx, 0x1000193
inc edx
xor ecx, esi
cmp edx, eax
jne 0x49cd54
and ecx, 0x7fffffff
push 0x1f31d
push ecx
call fcn.004e7b5b
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
add esp, 8
sub edx, eax
pop esi
mov eax, edx
jns 0x49cd90
add eax, 0x7fffffff
pop ebp
ret 4
Function at 0x4051c0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
call sub.SDL.dll_SDL_PollEvent
add esp, 4
test eax, eax
je 0x4051f8
mov eax, dword [esp]
and eax, 0xff
sub eax, 2
je 0x405207
sub eax, 0xa
je 0x4051ff
lea ecx, [esp]
push ecx
call sub.SDL.dll_SDL_PollEvent
add esp, 4
test eax, eax
jne 0x4051d4
or eax, 0xffffffff
add esp, 0x14
ret
push 3
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [esp + 8]
add esp, 0x14
ret

Function at 0x405240
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
call sub.SDL.dll_SDL_WaitEvent
mov al, byte [esp + 4]
add esp, 4
cmp al, 2
je 0x405264
cmp al, 0xc
jne 0x405243
push 3
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [esp + 8]
add esp, 0x14
ret
Function at 0x406ca0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x28
mov edx, dword [esp + 0x30]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
xor eax, eax
xor esi, esi
xor ebx, ebx
mov ecx, 1
xor edi, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
mov dword [edx], ebp
mov dword [esp + 0x14], edi
jmp 0x406cdb
mov ecx, 1
cmp edi, 3
ja case.default.0x406ce4
jmp dword [edi*4 + 0x406e34]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ecx
mov ebx, 8
lea esi, [esp + 0x24]
jmp case.default.0x406ce4
cmp eax, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ecx
mov ebx, eax
je 0x406d25
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x406e0f
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
jmp case.default.0x406ce4
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov ebx, 8
lea esi, [esp + 0x24]
jmp case.default.0x406ce4
cmp eax, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov ebx, eax
je 0x406d65
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x406e00
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
cmp esi, ebp
je 0x406ddd
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x3c]
and ecx, 3
push ebp
rep stosb byte es:[edi], al
lea eax, [esp + 0x24]
lea ecx, [esp + 0x30]
push eax
push ebx
push esi
push 0xc
push ecx
push 0x2d1400
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x406dd5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xea
je 0x406dc1
call edi
cmp eax, 1
je 0x406dc1
call edi
cmp eax, 0x32
jne 0x406e00
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
inc edi
cmp edi, 4
mov dword [esp + 0x14], edi
jb 0x406cd6
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x406dfc
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x406e0f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x406e1e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x1c]
xor eax, eax
pop edi
cmp ecx, ebp
pop esi
pop ebp
sete al
pop ebx
add esp, 0x28
ret
Function at 0x407b30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
xor ecx, ecx
xor ebx, ebx
test edi, edi
jle 0x407b6f
mov eax, dword [esp + 0x14]
mov esi, edi
xor edx, edx
mov dl, byte [eax]
add eax, 4
add ebp, edx
xor edx, edx
mov dl, byte [eax - 3]
and edx, 0xff
add ecx, edx
mov edx, dword [eax - 4]
shr edx, 0x10
and edx, 0xff
add ebx, edx
dec esi
jne 0x407b48
mov eax, edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea eax, [esi + ebx - 1]
xor ebx, ebx
cdq
idiv edi
mov bh, al
lea eax, [esi + ecx - 1]
cdq
idiv edi
mov bl, al
lea eax, [esi + ebp - 1]
cdq
idiv edi
shl ebx, 8
pop edi
pop esi
pop ebp
and eax, 0xff
or eax, ebx
pop ebx
ret

Function at 0x4086e0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0xc
xor eax, eax
lea edx, [esp]
mov dword [esp], eax
mov dword [esp + 4], eax
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
push ecx
push eax
mov eax, dword [esp + 0x20]
push 0xc
push edx
push 0x2d1400
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
ret
Function at 0x408740
Capabilities:
Get disk information

Disassembly:
sub esp, 0x26c
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x18]
mov ebx, 1
mov ecx, edi
shl ebx, cl
test eax, ebx
je 0x4088e8
lea esi, [edi + 0x41]
push esi
push str._c:_
push 0x52fb9c
call ebp
add esp, 0xc
push 0x52fb9c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jb 0x4088e8
cmp eax, 3
ja 0x4088e8
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push 0
lea eax, [esp + 0x38]
push 0x64
push eax
push 0x52fb9c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea ecx, [esp + 0x24]
push str.USB1
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4088e8
push esi
lea edx, [esp + 0x28]
push str.__c:
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x24]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4088e8
push 0x227
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
push edi
push esi
mov dword [edi + 4], 0x227
call fcn.004086e0
add esp, 0xc
test eax, eax
je 0x4088d3
cmp dword [edi + 0x1c], 7
jne 0x4088d3
push ebx
call fcn.00408720
mov ecx, dword [0x41d6bc]
add esp, 4
test ecx, ecx
jle 0x40886e
cmp dword [0x41d6c0], 0xffffffff
jne 0x40886e
movsx ecx, al
mov dword [0x41d6c0], ecx
jmp 0x408896
mov edx, dword [0x41d6b8]
test edx, edx
jle 0x408888
cmp ecx, 0xffffffff
jne 0x408888
movsx edx, al
mov dword [0x41d6bc], edx
jmp 0x408896
cmp edx, 0xffffffff
jne 0x408896
movsx ecx, al
mov dword [0x41d6b8], ecx
movsx edx, al
push edx
lea eax, [esp + 0x18]
push 0x41d6ec
push eax
call ebp
mov eax, dword [esp + 0x28c]
add esp, 0xc
test eax, eax
je 0x4088d3
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x143
push 0x3ea
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
inc edi
cmp edi, 0x20
mov dword [esp + 0x10], edi
jb 0x408760
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret
Function at 0x409200
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x417b38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov al, byte [esp + 3]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
lea ecx, [eax + eax + 2]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
cmp eax, edi
mov dword [esp + 0x28], eax
je 0x409273
push ebx
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x18]
call fcn.004081f0
mov edx, dword [esp + 0x1c]
lea ecx, [esi + 0x2a4]
mov eax, dword [edx]
push eax
push ecx
call ebp
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, edi
je 0x40929c
mov edx, dword [esp + 0x20]
sub edx, eax
sar edx, 2
cmp edx, 2
jae 0x4092c9
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov edx, dword [eax + 4]
xor ebx, ebx
push 0x41d920
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4092f1
mov dword [esp + 0x14], 1
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
jne 0x4092fd
xor eax, eax
jmp 0x409306
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
sub eax, ebx
dec eax
mov dword [esi + 0x29c], eax
shl eax, 2
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [esi + 0x2a0], eax
mov eax, dword [esi + 0x29c]
add esp, 4
cmp eax, edi
jle 0x409361
mov ebp, dword [sym.imp.MSVCRT.dll__wcsdup]
lea ebx, [ebx*4 + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + ecx]
push edx
call ebp
mov ecx, dword [esi + 0x2a0]
add esp, 4
add ebx, 4
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x29c]
inc edi
cmp edi, eax
jl 0x409339
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov edx, 1
sub edx, ebx
push eax
mov dword [esi + 0x294], edx
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x34]
add esp, 8
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x40d150
Capabilities:
Get disk information

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
push str.Desktop
mov ebx, ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov edx, dword [ebx + 0x140]
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esp + 0x10], eax
mov esi, 0x41
lea ecx, [esi - 0x41]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x40d250
push esi
push 0x41ddf0
push 0x52fb9c
call edi
add esp, 0xc
push 0x52fb9c
call ebp
cmp eax, 2
jb 0x40d250
cmp eax, 3
jbe 0x40d1df
cmp eax, 5
jne 0x40d250
push 0
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x20]
push edx
push eax
push 0
lea ecx, [esp + 0x30]
push 0x64
push ecx
push 0x52fb9c
mov word [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp word [esp + 0x1c], 0
je 0x40d227
lea edx, [esp + 0x1c]
push edx
push esi
push str._c:__s_
push 0x52fb9c
call edi
add esp, 0x10
jmp 0x40d237
push esi
push 0x41ddf0
push 0x52fb9c
call edi
add esp, 0xc
mov eax, dword [ebx + 0x140]
push 0x52fb9c
push 0
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
inc esi
lea ecx, [esi - 0x41]
cmp ecx, 0x20
jb 0x40d1a3
mov edx, dword [ebx + 0x140]
push 0
push 0
push 0x14e
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret
Function at 0x40fbc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x418331
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x95
mov dword [esp + 0x20], esi
call sub.MFC42u.DLL_CDialog::CDialog
lea ebx, [esi + 0x60]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x24], edi
call sub.MFC42u.DLL_CWnd::CWnd
mov dword [ebx], 0x419d7c
lea ebp, [esi + 0xa0]
mov byte [esp + 0x24], 1
mov ecx, ebp
call sub.MFC42u.DLL_CWnd::CWnd
mov dword [ebp], 0x41a4ec
lea ebp, [esi + 0xe0]
mov byte [esp + 0x24], 2
mov ecx, ebp
call sub.MFC42u.DLL_CString::CString
lea ebx, [esi + 0xe4]
mov byte [esp + 0x24], 3
mov ecx, ebx
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0xb44]
mov byte [esp + 0x24], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0xb58]
mov byte [esp + 0x24], 5
call fcn.004074d0
push 0x41f0f0
mov ecx, ebp
mov byte [esp + 0x28], 6
mov dword [esi], 0x41a8c0
call fcn.004117c4
push 0x41f0f0
mov ecx, ebx
call fcn.004117c4
xor ebp, ebp
mov dword [esi + 0xe8], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0xf4], 1
mov dword [esi + 0xf8], edi
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 7
push ecx
push 3
push edi
push str.SOFTWAREUSBMZEncryption
push 0x80000002
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40fcde
mov ebp, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x10], ebp
lea ebx, [esi + 0x108]
cmp eax, edi
mov dword [ebx], edi
jne 0x40fd34
lea edx, [esp + 0x2c]
push 4
push edx
push 4
push edi
push str.MZSUSB_running
push ebp
mov dword [esp + 0x44], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
push ebx
push ecx
push edi
push str.AutoErase
push ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebx]
mov dword [esi + 0xf8], edx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, edi
je 0x40fd47
push ebp
call ebx
xor ebp, ebp
mov dword [esp + 0x10], ebp
push str.No_Device
push 0x41d6c4
mov word [0x534e9c], di
mov word [0x530d4c], di
mov word [0x52fb94], di
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov dword [esi + 0xb34], edi
mov dword [esi + 0xb38], edi
mov dword [0x52fb90], edi
mov dword [0x534e98], edi
mov dword [0x534ee4], edi
call sub.MFC42u.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0xff9292
mov dword [esi + 0xb50], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
cmp ebp, edi
mov dword [esi + 0xb54], eax
je 0x40fdc8
push ebp
call ebx
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4