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

Disassembly:
sub esp, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
test edi, edi
jne 0x40123b
pop edi
add esp, 0x104
ret
push 0x4f6
call sub.MSVCRT.dll_malloc
add esp, 4
mov dword [0x405300], eax
test eax, eax
jne 0x401259
pop edi
add esp, 0x104
ret
push esi
push eax
call fcn.004012d0
add esp, 4
lea eax, [esp + 8]
push eax
push edi
call fcn.004012f0
lea ecx, [esp + 0x10]
mov edi, eax
push ecx
call fcn.00401350
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x4012af
lea edx, [esi + esi*4]
mov eax, dword [edx*4 + 0x404020]
test eax, eax
je 0x4012a1
lea eax, [esp + 8]
push eax
push edi
call fcn.004012f0
add esp, 8
mov edi, eax
lea ecx, [esp + 8]
push ecx
push esi
call fcn.004013b0
add esp, 8
cmp byte [edi], 0
jne 0x401263
mov eax, dword [0x405300]
pop esi
pop edi
add esp, 0x104
ret

Function at 0x401470
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x401482
pop edi
or eax, 0xffffffff
pop esi
ret 4
push 0x80
push 0x404eec
call sub.MSVCRT.dll__chmod
push 0x404ef8
push str.d2data.mpq
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4014b1
pop edi
or eax, 0xffffffff
pop esi
ret 4
push 2
push 0
push esi
call sub.MSVCRT.dll_fseek
push esi
call sub.MSVCRT.dll_ftell
add esp, 0x10
cmp eax, 0x1169303d
je 0x4014dc
push esi
call sub.MSVCRT.dll_fclose
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
ret 4
push 0
push 0x4d764
push esi
call sub.MSVCRT.dll_fseek
add esp, 0xc
test eax, eax
je 0x401501
push esi
call sub.MSVCRT.dll_fclose
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
ret 4
push 0x404f08
push edi
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x40151d
mov dword [esp + 0xc], 9
jmp 0x401533
push 0x404f0c
push edi
call sub.MSVCRT.dll__stricmp
add esp, 8
mov dword [esp + 0xc], 0
push esi
push 1
lea eax, [esp + 0x14]
push 1
push eax
call sub.MSVCRT.dll_fwrite
push esi
call sub.MSVCRT.dll_fflush
push esi
call sub.MSVCRT.dll_fclose
mov eax, dword [esp + 0x24]
add esp, 0x18
pop edi
pop esi
ret 4
Function at 0x401fd0
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebp, ebp
push edi
je 0x40204f
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40204f
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebx
test eax, eax
jne 0x40204f
cmp word [edi], 0x5a4d
jne 0x40204f
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call ebx
test eax, eax
jne 0x40204f
cmp dword [esi], 0x4550
jne 0x40204f
mov esi, dword [esi + 0x80]
test esi, esi
je 0x402059
mov eax, dword [esi + edi + 0xc]
add esi, edi
test eax, eax
je 0x402041
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
add eax, edi
push ebp
push eax
call ebx
test eax, eax
je 0x402041
mov eax, dword [esi + 0x20]
add esi, 0x14
test eax, eax
jne 0x40202d
mov eax, dword [esi + 0xc]
pop edi
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
pop ebx
ret
push 1
push 0x57
call dword [sym.imp.USER32.dll_SetLastErrorEx]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x421590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x4215b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4215b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4215a8
mov eax, 1
add ebx, ebx
jne 0x4215cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4215c0
jne 0x4215dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4215c0
xor ecx, ecx
sub eax, 3
jb 0x4215f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421662
mov ebp, eax
add ebx, ebx
jne 0x4215fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421608
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42162c
inc ecx
add ebx, ebx
jne 0x421618
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42160d
jne 0x421629
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42160d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42164c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42163d
jmp 0x4215ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42164c
add edi, ecx
jmp 0x4215ae
pop esi
mov edi, esi
mov ecx, 0xcfb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42166a
cmp byte [edi], 9
jne 0x42166a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42166f
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x4216e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21d4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21db0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42169c
mov ecx, edi
jns 0x4216cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x21db4]
or eax, eax
je 0x4216e1
mov dword [ebx], eax
add ebx, 4
jmp 0x4216b9
call dword [esi + 0x21dbc]
mov ebp, dword [esi + 0x21db8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42171b
sub esp, 0xffffff80
jmp 0x411d36
Function at 0x924058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009241a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x92407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92406a
add dl, dl
jne 0x924089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9240dc
xor eax, eax
add dl, dl
jne 0x924096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92417d
add dl, dl
jne 0x9240a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9240b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9240bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9240c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9240d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x924075
mov eax, 1
add dl, dl
jne 0x9240ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9240f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9240e1
sub eax, ebx
mov ebx, 1
jne 0x924128
mov ecx, 1
add dl, dl
jne 0x92410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x924119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x924105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x924075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x92413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x92414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x924136
cmp eax, 0x7d00
jae 0x92416d
cmp eax, 0x500
jb 0x924168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x924075
cmp eax, 0x7f
ja 0x924170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x924075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x92419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x924075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4036b3
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0xc6ad9c], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x4036f8
push 0x402b50
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0x402b8c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [str.r_fgBp_]
mov ebx, dword [0x805d2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004036ac
mov eax, dword [0x805d30]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x805d34]
add edi, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0xc6ad9c], 0xc
mov dword [ebp - 4], ecx
jne 0x403799
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc44]
push eax
push esi
push 0x402bc8
push 0x402c14
push 0x402c48
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push esi
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0xc6ad9c]
cmp ecx, 0xfa9
jne 0x4037b7
mov dword [0xc6ad98], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x4037c5
mov dword [0xc43f38], esi
lea ecx, [edi + eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr eax, cl
mov dword [0xc6ad94], 0xf4ea3dee
add eax, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0xc6ad9c], 0x213
mov dword [ebp - 0x14], ecx
jne 0x403803
push esi
push 0x402cc0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0xc6ad9c], 0xc
jne 0x40384c
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402d00
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [edi + eax]
shr eax, cl
add eax, ebx
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
add edi, 0x61c88647
dec dword [ebp - 0x18]
jne 0x403731
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x403897
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xc6ad9c]
mov ecx, dword [0xc43f3c]
sub esp, 0x834
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x40398f
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0xc6ad9c], 0x959
jne 0x40397d
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d9c
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402dd8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402e20
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.004036b3
add ebx, 8
dec dword [ebp - 4]
jne 0x4038c0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40574b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8054b4]
jne 0x405755
repz ret
jmp fcn.00408fbc

Function at 0x40addb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406d66
and dword [ebp - 4], 0
cmp dword [0x809828], 0
mov ebx, eax
jne 0x40ae8c
push 0x4021bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40af3d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021b0
push edi
call esi
test eax, eax
je 0x40af3d
push eax
call fcn.00406cf4
mov dword [esp], 0x4021a0
push edi
mov dword [0x809828], eax
call esi
push eax
call fcn.00406cf4
mov dword [esp], 0x40218c
push edi
mov dword [0x80982c], eax
call esi
push eax
call fcn.00406cf4
mov dword [esp], 0x402170
push edi
mov dword [0x809830], eax
call esi
push eax
call fcn.00406cf4
pop ecx
mov dword [0x809838], eax
test eax, eax
je 0x40ae8c
push 0x402158
push edi
call esi
push eax
call fcn.00406cf4
pop ecx
mov dword [0x809834], eax
mov eax, dword [0x809834]
cmp eax, ebx
je 0x40aee4
cmp dword [0x809838], ebx
je 0x40aee4
push eax
call fcn.00406d6f
push dword [0x809838]
mov esi, eax
call fcn.00406d6f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40aee4
test edi, edi
je 0x40aee4
call esi
test eax, eax
je 0x40aedb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40aedb
test byte [ebp - 0xc], 1
jne 0x40aee4
or dword [ebp + 0x10], 0x200000
jmp 0x40af1d
mov eax, dword [0x80982c]
cmp eax, ebx
je 0x40af1d
push eax
call fcn.00406d6f
pop ecx
test eax, eax
je 0x40af1d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40af1d
mov eax, dword [0x809830]
cmp eax, ebx
je 0x40af1d
push eax
call fcn.00406d6f
pop ecx
test eax, eax
je 0x40af1d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x809828]
call fcn.00406d6f
pop ecx
test eax, eax
je 0x40af3d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40af3f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401400
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5402b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov byte [ebp - 0x21], bl
cmp esi, ebx
je 0x4014a1
cmp word [esi], bx
je 0x4014a1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4014a1
xor eax, eax
mov word [ebp - 0x1c], ax
mov eax, esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], ebx
call fcn.00401520
lea ebx, [ebp - 0x20]
lea esi, [ebp - 0x40]
call fcn.00407e40
mov esi, 8
cmp dword [ebp - 0x28], esi
jb 0x40146c
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004c097a
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x40148d
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 8], esi
jae 0x40147d
lea ecx, [ebp - 0x1c]
mov eax, str.1.0.0.1014
call fcn.00408470
mov bl, 1
test eax, eax
jg 0x401490
mov bl, byte [ebp - 0x21]
cmp dword [ebp - 8], esi
jb 0x4014a1
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004c097a
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004c0985
mov esp, ebp
pop ebp
ret

Function at 0x401e40
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4031e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
movzx eax, word [edi + 0x14]
lea eax, [eax + edi + 0x18]
lea esi, [eax + 0xc]
mov dword [ebp - 4], eax
cmp ebx, dword [esi]
jae 0x403208
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [edi + 6]
xor eax, eax
test ecx, ecx
ja 0x403223
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
lea edx, [eax + 1]
cmp edx, ecx
jne 0x40322f
mov edi, dword [edi + 0x50]
jmp 0x403232
mov edi, dword [esi + 0x28]
cmp ebx, dword [esi]
jb 0x40323e
cmp dword [ebp + 0xc], edi
jb 0x403251
mov ebx, dword [ebp + 0xc]
mov eax, edx
add esi, 0x28
cmp eax, ecx
jb 0x403220
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
lea ecx, [eax + eax*4]
mov eax, dword [edx + ecx*8 + 0x14]
sub eax, dword [edx + ecx*8 + 0xc]
lea ecx, [edx + ecx*8]
add eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403dd0
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x404910
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d18
call fcn.004cd140
mov eax, dword [0x5402b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2d14], eax
cmp eax, ebx
je 0x404aa4
push esi
mov dword [ebp - 0x2d10], ebx
mov dword [ebp - 0x2d0c], ebx
push edi
lea esp, [esp]
mov eax, dword [ebp - 0x2d0c]
push eax
push str..PhysicalDrive_d
mov eax, 0x200
lea edi, [ebp - 0x204]
call fcn.00405890
add esp, 8
push ebx
push ebx
push 3
push ebx
push 3
push ebx
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404a77
xor eax, eax
push 0x2710
lea edx, [ebp - 0x2cfc]
push ebx
mov dword [ebp - 0x2d08], eax
mov dword [ebp - 0x2d04], eax
push edx
mov dword [ebp - 0x2d18], ebx
mov dword [ebp - 0x2d00], eax
mov dword [ebp - 0x2d08], ebx
mov dword [ebp - 0x2d04], ebx
call fcn.004c5470
add esp, 0xc
push ebx
lea eax, [ebp - 0x2d18]
push eax
push 0x2710
lea ecx, [ebp - 0x2cfc]
push ecx
push 0xc
lea edx, [ebp - 0x2d08]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404a68
push 0x3e8
lea eax, [ebp - 0x5ec]
push ebx
push eax
call fcn.004c5470
mov eax, dword [ebp - 0x2ce4]
add esp, 0xc
lea edi, [ebp - 0x5ec]
lea ecx, [ebp - 0x2cfc]
call fcn.004040a0
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp edx, 0x7fffffff
jbe 0x404a31
mov eax, 0x80070057
cmp eax, ebx
jl 0x404a4e
lea ecx, [ebp - 0x5ec]
push ecx
mov ecx, dword [ebp - 0x2d14]
mov eax, SysReAllocString
call fcn.00405800
jmp 0x404a5a
cmp edx, ebx
jbe 0x404a5a
mov edx, dword [ebp - 0x2d14]
mov byte [edx], bl
cmp eax, ebx
jne 0x404a68
mov dword [ebp - 0x2d10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d10], ebx
jne 0x404a8d
mov eax, dword [ebp - 0x2d0c]
inc eax
cmp eax, 0x10
mov dword [ebp - 0x2d0c], eax
jl 0x404950
mov eax, dword [ebp - 0x2d10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c0985
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004c0985
mov esp, ebp
pop ebp
ret
Function at 0x404df0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f4
mov eax, dword [0x5402b0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x4f4], edi
test edi, edi
je 0x404fc3
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004c5470
add esp, 0xc
lea ecx, [ebp - 0x4e0]
push ecx
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404f97
mov ecx, dword [ebp - 0x4e0]
push esi
xor esi, esi
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x4e4]
push edx
lea eax, [ebp - 0x2d4]
push eax
push esi
push ecx
mov dword [ebp - 0x4e4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x404f89
mov edi, 1
push ebx
mov ecx, dword [ebp - 0x4e0]
lea edx, [ebp - 0x4e8]
push edx
push edi
push 0
lea eax, [ebp - 0x2d4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404f4a
lea edx, [ebp - 0x4f0]
push edx
mov edx, dword [ebp - 0x4e8]
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 0x4ec]
push ecx
push 0
push 0x51b914
push edx
mov dword [ebp - 0x4ec], edi
mov dword [ebp - 0x4f0], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404f3d
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.004c5470
lea ecx, [ebp - 0x4dc]
push ecx
lea ebx, [ebp - 0xcc]
call fcn.00404ce0
add esp, 0x10
test eax, eax
je 0x404f3d
cmp byte [ebp - 0x68], 0
je 0x404f24
lea edx, [ebp - 0x68]
push edx
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x404f3d
lea ecx, [ebp - 0xcc]
push ecx
mov eax, SysReAllocString
mov edx, 0x64
lea ecx, [ebp - 0x68]
call fcn.00405800
mov edx, dword [ebp - 0x4e8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x4e0]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x2d4]
push ecx
add esi, edi
push esi
push edx
mov dword [ebp - 0x4e4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404e82
mov edi, dword [ebp - 0x4f4]
pop ebx
mov eax, dword [ebp - 0x4e0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp byte [ebp - 0x68], 0
je 0x404fc3
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x68]
push ecx
mov ecx, edi
call fcn.00405860
xor edx, edx
test eax, eax
setge dl
pop edi
mov eax, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c0985
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004c0985
mov esp, ebp
pop ebp
ret