joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ce7d
Capabilities:
Enumerate files on windows

Disassembly:
cmp dword [esp + 4], 0
je 0x40cedb
cmp dword [0x41a1d8], 0
jne 0x40cea1
push 0x244
call fcn.00408c75
test eax, eax
pop ecx
mov dword [0x41a1d8], eax
je 0x40cf04
mov eax, dword [0x41a1dc]
test eax, eax
je 0x40ceb8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x41a1dc], 0
push dword [0x41a1d8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [0x41a1dc], eax
je 0x40cf04
mov eax, dword [0x41a1d8]
add eax, 0x2c
ret
push dword [0x41a1d8]
push dword [0x41a1dc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ced2
push dword [0x41a1dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x41a1dc], 0
xor eax, eax
ret

Function at 0x40d131
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x419bb0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x419950]
je 0x40d166
inc eax
cmp eax, 0x13
jb 0x40d157
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x419950]
jne 0x40d28c
mov eax, dword [0x41a060]
cmp eax, 1
je 0x40d264
cmp eax, edx
jne 0x40d196
cmp dword [0x4195bc], 1
je 0x40d264
cmp ecx, 0xfc
je 0x40d28c
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d1cc
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004076c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00406fb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40d200
mov eax, edi
push eax
call fcn.00406fb0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x415de0
push edi
call fcn.00410420
add esp, 0x10
push edi
call fcn.00406fb0
push dword [esi + 0x419954]
mov ebx, eax
call fcn.00406fb0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040d5a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004076c0
push edi
push ebx
call fcn.004076d0
push 0x415dc0
push ebx
call fcn.004076d0
push dword [esi + 0x419954]
push ebx
call fcn.004076d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00410322
add esp, 0x2c
jmp 0x40d28c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x419954]
push dword [esi]
call fcn.00406fb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040e943
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40e82f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040d5a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e8ca
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x419e7c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40e8ca
cmp eax, 1
je 0x40e8eb
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e8ca
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40e897
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40e8c6
xor eax, eax
inc eax
jmp 0x40e90a
cmp edi, eax
jae 0x40e8ce
xor eax, eax
jmp 0x40e90a
cmp eax, esi
jae 0x40e8d5
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x419e7c]
jmp 0x40e8ee
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ee04
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40ee32
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40ee39
cmp ebx, dword [eax + 4]
jae 0x40ee39
xor eax, eax
jmp 0x40f029
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40ee4a
xor eax, eax
inc eax
jmp 0x40f028
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40ee60
cmp ecx, edx
jae 0x40efa5
cmp dword [eax + 4], 0
je 0x40ee69
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40ee51
cmp dword [ebp + 8], 0
je 0x40ee8b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40efa5
cmp eax, esi
jae 0x40efa5
mov eax, dword [0x41a208]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40eeb0
cmp dword [esi*4 + 0x41a210], edi
je 0x40efa9
inc esi
cmp esi, eax
jl 0x40ee9e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f025
cmp dword [ebp - 8], 0x1000000
jne 0x40f025
test byte [ebp - 0xc], 0xcc
je 0x40ef2e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f025
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f025
cmp word [eax + 0x18], 0x10b
jne 0x40f025
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f025
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40ef2e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40ef2e
test byte [ecx + 0x27], 0x80
jne 0x40efa5
push 1
push 0x41a250
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40ee42
mov ecx, dword [0x41a208]
test ecx, ecx
mov edx, ecx
jle 0x40ef62
lea eax, [ecx*4 + 0x41a20c]
cmp dword [eax], edi
je 0x40ef62
dec edx
sub eax, 4
test edx, edx
jg 0x40ef56
test edx, edx
jne 0x40ef93
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40ef6f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40ef87
lea eax, [edx*4 + 0x41a210]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40ef75
cmp ecx, 0x10
jge 0x40ef93
inc ecx
mov dword [0x41a208], ecx
push 0
push 0x41a250
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40ee42
xor eax, eax
jmp 0x40f028
test esi, esi
jle 0x40ee42
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41a250
call ebx
test eax, eax
jne 0x40ee42
cmp dword [esi*4 + 0x41a210], edi
je 0x40efff
mov eax, dword [0x41a208]
lea esi, [eax - 1]
test esi, esi
jl 0x40efed
cmp dword [esi*4 + 0x41a210], edi
je 0x40efe9
dec esi
jns 0x40efdd
test esi, esi
jge 0x40effd
cmp eax, 0x10
jge 0x40eff8
inc eax
mov dword [0x41a208], eax
lea esi, [eax - 1]
jmp 0x40efff
je 0x40f017
xor ecx, ecx
test esi, esi
jl 0x40f017
lea eax, [ecx*4 + 0x41a210]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40f005
push 0
push 0x41a250
call ebx
jmp 0x40ee42
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410322
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41a284], ebx
push esi
push edi
jne 0x4103a2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4103dd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4165ec
push edi
call esi
test eax, eax
mov dword [0x41a284], eax
je 0x4103dd
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41a288], eax
call esi
cmp dword [0x419e7c], 2
mov dword [0x41a28c], eax
jne 0x4103a2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41a294], eax
je 0x4103a2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41a290], eax
mov eax, dword [0x41a290]
test eax, eax
je 0x4103e7
call eax
test eax, eax
je 0x4103ce
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41a294]
test eax, eax
je 0x4103ce
test byte [ebp - 8], 1
jne 0x4103e7
cmp dword [0x419e88], 4
jb 0x4103e1
or byte [ebp + 0x12], 0x20
jmp 0x410406
xor eax, eax
jmp 0x410416
or byte [ebp + 0x12], 4
jmp 0x410406
mov eax, dword [0x41a288]
test eax, eax
je 0x410406
call eax
mov ebx, eax
test ebx, ebx
je 0x410406
mov eax, dword [0x41a28c]
test eax, eax
je 0x410406
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41a284]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410c13
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040d5a0
mov eax, dword [0x419bb0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040e951
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x410d46
push 2
push esi
push dword [ebp + 8]
call fcn.0040e951
add esp, 0xc
cmp eax, ebx
je 0x410d46
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x410ce6
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00407910
push 0x8000
push dword [ebp + 8]
call fcn.004117f5
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x410c9c
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0040b557
add esp, 0xc
cmp eax, 0xffffffff
je 0x410cbc
sub edi, eax
test edi, edi
jg 0x410c94
jmp 0x410cd4
call fcn.004081f3
cmp dword [eax], 5
jne 0x410cd1
call fcn.004081ea
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004117f5
pop ecx
pop ecx
jmp 0x410d2e
jge 0x410d2e
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e951
push dword [ebp + 8]
call fcn.0040d6d8
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x410d2e
call fcn.004081ea
mov dword [eax], 0xd
call fcn.004081f3
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0040e951
add esp, 0xc
mov eax, esi
pop edi
jmp 0x410d48
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040e943
leave
ret
Function at 0x41202c
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x4169a8
call fcn.0040ae90
mov eax, dword [0x419bb0]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x4120d0
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0040d5a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x4120bd
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4120d0
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x4120eb
cmp byte [edi + 1], 0x3a
jne 0x4120eb
movzx eax, byte [edi]
push eax
call fcn.004123c7
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x4120fb
push edi
call fcn.00408e34
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.0040e943
call fcn.0040aecb
ret

Function at 0x412196
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4121c4
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4121c9
cmp eax, 1
je 0x4121c9
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4121cd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x419bb0]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x412245
push ebx
call fcn.00412196
test eax, eax
pop ecx
jne 0x412214
call fcn.004081f3
mov dword [eax], 0xf
call fcn.004081ea
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0040e943
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x412257
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x412207
inc eax
cmp eax, 0x104
ja 0x412207
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41228f
cmp eax, dword [ebp + 0x10]
jg 0x412272
mov eax, dword [ebp + 0x10]
push eax
call fcn.00408c75
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4122a4
call fcn.004081ea
mov dword [eax], 0xc
jmp 0x412207
cmp eax, dword [ebp + 0x10]
jle 0x4122a4
call fcn.004081ea
mov dword [eax], 0x22
jmp 0x412207
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.004076c0
pop ecx
pop ecx
jmp 0x412209
Function at 0x10001620
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027679
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10036014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 4]
mov dword [ebp + 8], ecx
mov al, byte [esi]
mov byte [edi], al
lea eax, [esi + 4]
push eax
call fcn.10002ca0
lea eax, [esi + 8]
mov dword [ebp - 4], 0
lea ecx, [edi + 8]
push eax
mov dword [ebp + 8], ecx
call fcn.10002ca0
lea eax, [esi + 0xc]
mov byte [ebp - 4], 1
lea ecx, [edi + 0xc]
push eax
mov dword [ebp + 8], ecx
call fcn.10002ca0
lea eax, [esi + 0x10]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x10]
push eax
mov dword [ebp + 8], ecx
call fcn.10002ca0
lea eax, [esi + 0x14]
mov byte [ebp - 4], 3
lea ecx, [edi + 0x14]
push eax
mov dword [ebp + 8], ecx
call fcn.10002ca0
lea eax, [esi + 0x18]
mov byte [ebp - 4], 4
lea ecx, [edi + 0x18]
push eax
mov dword [ebp + 8], ecx
call fcn.10002ca0
lea eax, [esi + 0x1c]
mov byte [ebp - 4], 5
lea ecx, [edi + 0x1c]
push eax
mov dword [ebp + 8], ecx
call fcn.10002ca0
lea eax, [esi + 0x20]
mov byte [ebp - 4], 6
lea ecx, [edi + 0x20]
push eax
mov dword [ebp + 8], ecx
call fcn.10002ca0
lea eax, [esi + 0x24]
mov byte [ebp - 4], 7
lea ecx, [edi + 0x24]
push eax
mov dword [ebp + 8], ecx
call fcn.10002ca0
lea eax, [esi + 0x28]
mov byte [ebp - 4], 8
lea ecx, [edi + 0x28]
push eax
mov dword [ebp + 8], ecx
call fcn.10002ca0
lea eax, [esi + 0x2c]
mov byte [ebp - 4], 9
lea ecx, [edi + 0x2c]
push eax
mov dword [ebp + 8], ecx
call fcn.10002ca0
mov byte [ebp - 4], 0xa
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
lea ecx, [edi + 0x48]
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], eax
lea eax, [esi + 0x48]
push eax
mov dword [ebp + 8], ecx
call fcn.10002ca0
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10003380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10003395
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100033d6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100033d2
lea ebx, [ebx]
cmp esi, edx
jae 0x100033d6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100033c0
cmp esi, edx
jb 0x100033db
xor eax, eax
pop esi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x10004cc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10036014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
push 0x80
push 3
push 0
mov edi, ecx
push 3
push 0x80
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10004d0b
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011ed6
mov esp, ebp
pop ebp
ret
push esi
push 0
lea eax, [ebp - 0x88]
push eax
push 0
push 0
push 0
push 0
push 0x2d0800
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x10004d56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x456
je 0x10004d56
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011ed6
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.10015730
mov eax, dword [edi + 0x2c]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x10004d80
push dword [eax - 0xc]
lea ecx, [edi + 0x2c]
call fcn.10002c10
push 0
push 0
push 0
push 0
push 0
push 0x40
lea eax, [ebp - 0x84]
push eax
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea ecx, [edi + 0x30]
test eax, eax
je 0x10004dc9
lea edx, [ebp - 0x84]
lea esi, [edx + 2]
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10004db0
sub edx, esi
lea eax, [ebp - 0x84]
sar edx, 1
push edx
push eax
jmp 0x10004dd0
push 0
push 0x1002fd6c
call fcn.10002eb0
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.10011ed6
mov esp, ebp
pop ebp
ret

Function at 0x10005050
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x44], 0
jne 0x100050b3
lock inc dword [esi + 0x98]
lea eax, [ebp - 4]
push eax
push 0
push esi
push sym.VDriveLib.dll_protected:_static_unsigned_int___stdcall_CSPTDDeviceInfo::ThreadRefreshDeviceInfo_void__
push 0
push 0
call fcn.10016be4
add esp, 0x18
mov dword [esi + 0x7c], eax
test eax, eax
jne 0x100050b3
cmp dword [0x100368b0], 0x100368b0
je 0x100050b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x100368b0]
mov edx, 0x1002fde4
mov ecx, 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.10001da0
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10005300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push esi
push sym.VDriveLib.dll_protected:_static_unsigned_int___stdcall_CSPTDDeviceInfo::ThreadRefreshDeviceInfo_void__
push 0
push 0
call fcn.10016be4
add esp, 0x18
mov dword [esi + 0x7c], eax
pop esi
test eax, eax
jne 0x10005357
cmp dword [0x100368b0], 0x100368b0
je 0x10005357
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x100368b0]
mov edx, 0x1002fde4
mov ecx, 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.10001da0
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x10005360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x60], eax
lock inc dword [esi + 0x94]
lea eax, [ebp + 8]
push eax
push 0
push esi
push sym.VDriveLib.dll_protected:_static_unsigned_int___stdcall_CSPTDDeviceInfo::ThreadRefreshDeviceInfo_void__
push 0
push 0
call fcn.10016be4
add esp, 0x18
mov dword [esi + 0x7c], eax
pop esi
test eax, eax
jne 0x100053c3
cmp dword [0x100368b0], 0x100368b0
je 0x100053c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x100368b0]
mov edx, 0x1002fde4
mov ecx, 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.10001da0
add esp, 0xc
pop ebp
ret 4

Function at 0x1000a081
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x10036014]
cmp sp, 0x6974
cmp edx, ebx
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [sym.VDriveLib.dll_int__VDriveEngine::g_pSPTDExists]
cmp bx, dx
clc
push ebx
test bp, dx
push esi
push edi
cmp dword [eax], 0
jmp 0x1000c8b2
mov dword [esp + 0xc], ecx
jmp loc.1003af28
Function at 0x1000a2f0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x10036014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0xfc], ecx
xor esi, esi
mov edi, edi
movzx ecx, byte [esi + 0x100306c8]
mov eax, ecx
and ecx, 7
shr eax, 3
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x10030760], al
movzx ecx, byte [esi + 0x100306c9]
setne al
mov byte [ebp + esi - 0x3c], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x10030760], al
movzx ecx, byte [esi + 0x100306ca]
setne al
mov byte [ebp + esi - 0x3b], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x10030760], al
movzx ecx, byte [esi + 0x100306cb]
setne al
mov byte [ebp + esi - 0x3a], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x10030760], al
setne al
mov byte [ebp + esi - 0x39], al
add esi, 4
cmp esi, 0x38
jl 0x1000a310
xor ebx, ebx
lea eax, [ebx + ebx]
xor edx, edx
lea edi, [ebp - 0xf4]
mov dword [ebp + eax*4 - 0xf0], 0
lea esi, [ebp + eax*4 - 0xf0]
mov dword [edi + eax*4], 0
lea edi, [edi + eax*4]
movzx eax, byte [ebx + 0x100306b8]
mov dword [ebp - 0xf8], eax
mov ecx, eax
cmp ecx, 0x1c
jge 0x1000a3e3
mov al, byte [ebp + ecx - 0x3c]
jmp 0x1000a3e7
mov al, byte [ebp + ecx - 0x58]
mov byte [ebp + edx - 0x74], al
inc ecx
inc edx
cmp edx, 0x1c
jl 0x1000a3d8
mov ecx, dword [ebp - 0xf8]
mov edx, 0x1c
add ecx, edx
nop
cmp ecx, 0x38
jge 0x1000a40b
mov al, byte [ebp + ecx - 0x3c]
jmp 0x1000a40f
mov al, byte [ebp + ecx - 0x58]
mov byte [ebp + edx - 0x74], al
inc ecx
inc edx
cmp edx, 0x38
jl 0x1000a400
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + 0x10030688]
cmp byte [ebp + ecx - 0x74], 0
je 0x1000a437
mov ecx, dword [eax*4 + 0x10030700]
or dword [edi], ecx
movzx ecx, byte [eax + 0x100306a0]
cmp byte [ebp + ecx - 0x74], 0
je 0x1000a44e
mov ecx, dword [eax*4 + 0x10030700]
or dword [esi], ecx
inc eax
cmp eax, 0x18
jl 0x1000a420
inc ebx
cmp ebx, 0x10
jl 0x1000a3a2
push dword [ebp + 8]
mov ecx, dword [ebp - 0xfc]
lea edx, [ebp - 0xf4]
call fcn.1000a490
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10011ed6
mov esp, ebp
pop ebp
ret