joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d783
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1001d7a2
push 0x2001f
push dword [ebp + 8]
push edi
call fcn.1001ce05
add esp, 0xc
mov esi, eax
jmp 0x1001d7a4
mov esi, edi
test esi, esi
je 0x1001d7fd
cmp dword [ebp + 0xc], 0
je 0x1001d7cb
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1001d7f2
cmp esi, edi
je 0x1001d7c7
push esi
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001d7ff
push esi
call fcn.1001d6cf
pop ecx
test al, al
je 0x1001d7f2
cmp esi, edi
je 0x1001d7e1
push esi
call fcn.1001ce56
pop ecx
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
inc eax
jmp 0x1001d7ff
cmp esi, edi
je 0x1001d7fd
push esi
call fcn.1001ce56
pop ecx
xor al, al
pop esi
pop ebp
ret

Function at 0x1001df94
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x1001dfb9
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce05
add esp, 0xc
mov ebx, eax
jmp 0x1001dfbc
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
call fcn.100d21b0
cmp ebx, esi
je 0x1001e05e
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push esi
push ebx
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1001e052
cmp dword [ebp + 0xc], esi
jbe 0x1001e052
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10063b52
mov edi, eax
pop ecx
cmp edi, esi
je 0x1001e052
cmp dword [ebp + 0xc], esi
jbe 0x1001e03b
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1001e035
mov ecx, dword [ebp + 0x10]
push edi
call fcn.1000575c
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x1001e01a
push edi
call fcn.10063b5d
pop ecx
cmp ebx, dword [ebp + 8]
je 0x1001e04e
push ebx
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001e060
cmp ebx, dword [ebp + 8]
je 0x1001e05e
push ebx
call fcn.1001ce56
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001fab5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1001faeb
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1001faea
push dword [edi + 0xc]
call esi
push eax
call fcn.10067dbc
pop esi
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
leave
ret
Function at 0x10023331
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov eax, 0x2001f
cmp dword [ebp + 0x14], esi
je 0x1002334a
mov eax, 0x2011f
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10023394
cmp dword [ebp + 0x10], esi
je 0x10023376
push dword [ebp + 0x10]
call fcn.100977b6
pop ecx
lea eax, [eax + eax + 2]
jmp 0x10023378
xor eax, eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0x10

Function at 0x10023399
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
mov eax, 0x2001f
je 0x100233b1
mov eax, 0x2011f
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100233e9
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 0x10

Function at 0x100233ed
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10023476
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 8], edi
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
mov eax, dword [ebp + 8]
cmp eax, 2
jb 0x1002346c
inc eax
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10063b52
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x1002346c
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x1002347e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100234cf
and dword [ebp - 0xc], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp + 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret 8
Function at 0x100242db
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x101cd911
call fcn.100970bf
mov esi, ecx
push 1
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100daac0
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
je 0x10024339
cmp dword [ebp + 8], edi
je 0x10024339
push 2
push edi
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
call fcn.100977b6
pop ecx
add eax, eax
push eax
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100dab20
call fcn.10097197
ret 4
Function at 0x10027dd2
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x101ce476
call fcn.100970bf
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [eax - 8], ebx
jne 0x10027df5
xor edi, edi
inc edi
jmp 0x10027ed3
mov eax, dword [0x1020dc58]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
lea eax, [ebp + 0xc]
push eax
cmp dword [ebp + 0xc], ebx
je 0x10027e14
call fcn.10027c5b
mov byte [ebp - 4], 1
jmp 0x10027e1d
call fcn.10027ca9
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 8]
call fcn.100cc9b0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.100cc820
mov esi, dword [ebp + 8]
push ebx
push ebx
push 2
call fcn.100f5590
push eax
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10027e81
push str.MailText.dat
push str.SaveMailText_create_file__s__fail
push str.MailInfo
push 4
push 0x10266f7c
call fcn.10024f90
add esp, 0x14
or dword [ebp - 4], esi
lea ecx, [ebp + 8]
call fcn.100cc820
mov edi, dword [ebp - 0x14]
jmp 0x10027ed3
mov eax, dword [edi]
push ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x10]
push ecx
add eax, eax
push eax
push ebx
mov ecx, edi
call fcn.100cd4f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x10]
mov edi, eax
push edi
push str.SaveMailText_after_write_file__bRet__d__dwWrite__lu_
push str.MailInfo
push 4
push 0x10266f7c
call fcn.10024f90
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100cc820
mov eax, edi
call fcn.10097197
ret 8
Function at 0x10027edd
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x101ce4a9
call fcn.100970bf
mov esi, ecx
mov ecx, dword [ebp + 8]
call fcn.100cc590
xor edi, edi
cmp dword [esi + 0x1c], edi
jne 0x10027f01
xor eax, eax
jmp 0x1002806a
mov eax, dword [0x1020dc58]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
cmp dword [ebp + 0xc], edi
je 0x10027f25
call fcn.10027c5b
mov byte [ebp - 4], 1
jmp 0x10027f2e
call fcn.10027ca9
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x10]
call fcn.100cc9b0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.100cc820
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x10027f93
push str.MailText.dat
push str.GetMailText_read_file__s__fail
push str.MailInfo
push 4
push 0x10266f7c
call fcn.10024f90
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100cc820
jmp 0x10027efa
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push str.GetMailText_file_size:_lu_B
mov edi, str.MailInfo
push edi
push 4
mov esi, 0x10266f7c
push esi
call fcn.10024f90
add esp, 0x14
cmp ebx, 0xffffffff
je 0x10028034
test ebx, ebx
je 0x10028034
mov eax, ebx
shr eax, 1
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10063b52
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x10027ff6
push str.GetMailText_new_memory_fail
push edi
push 4
push esi
call fcn.10024f90
add esp, 0x10
jmp 0x10028034
lea ecx, [ebx + 2]
push ecx
push 0
push eax
call fcn.100971d0
and dword [ebp - 0x18], 0
add esp, 0xc
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push str.GetMailText_after_read__bRead__d___dwRead__lu___text:_s
push edi
push 4
push esi
call fcn.10024f90
add esp, 0x1c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100cc820
cmp dword [ebp - 0x14], 0
je 0x10027efa
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.100ccaa0
push dword [ebp - 0x14]
call fcn.10063b5d
xor eax, eax
pop ecx
inc eax
call fcn.10097197
ret 8
Function at 0x1002c452
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1019ce30
Function at 0x10036550
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x101d077e
call fcn.10097128
xor ebx, ebx
mov esi, 0x1026a1f8
cmp dword [0x1026a1f0], ebx
je 0x10036577
cmp dword [ebp + 8], ebx
je 0x1003669b
push 0x208
push ebx
push esi
call fcn.100971d0
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.100971d0
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x1003660f
lea eax, [ebp - 0x218]
push eax
call fcn.100977b6
pop ecx
cmp eax, ebx
jbe 0x100365db
lea eax, [ebp + eax*2 - 0x21a]
cmp word [eax], 0x5c
jne 0x100365db
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.10097b06
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x218]
je 0x10036600
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
jmp 0x1003660f
push 0x103
push eax
push esi
call fcn.1009776c
add esp, 0xc
push esi
lea ecx, [ebp - 0x21c]
call fcn.100cc080
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 8], ebx
je 0x1003666c
push eax
push esi
call fcn.10097721
push str.TEC_MailBackup
push esi
call fcn.100976f3
add esp, 0x10
push esi
lea ecx, [ebp - 0x220]
call fcn.100cc080
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x220]
call fcn.10035fe4
mov dword [0x1026a1f0], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
call fcn.100cc820
push dword [0x1026a1f0]
push esi
push str.CSDGlobalShare::GetBackupDirectory___s__bGet__lu__r_n
push str.SDMailGlobal
push 1
push 0x10266f7c
call fcn.10024f90
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.100cc820
mov eax, dword [0x1026a1f0]
neg eax
sbb eax, eax
and eax, esi
call fcn.100971ab
ret
Function at 0x10038412
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x1c
mov eax, 0x101d0bf3
call fcn.100970bf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.CSDHelperThread::CleanUnValidCache_r_n
mov ebx, str.OutlookCtrlX
push ebx
push 0xffffffffffffffff
mov edi, 0x10266f7c
push edi
mov esi, eax
call fcn.10024f90
add esp, 0x10
cmp dword [ebp + 0xc], esi
jae 0x10038452
sub esi, dword [ebp + 0xc]
cmp dword [ebp + 8], esi
ja 0x10038518
mov esi, 0x1026a894
mov ecx, esi
call fcn.100378d6
test eax, eax
je 0x100384f2
push 1
push 0x1026a874
lea ecx, [ebp - 0x28]
call fcn.100daac0
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x10], 0
mov ecx, esi
mov dword [ebp + 0xc], eax
call fcn.100378da
mov dword [ebp - 0x14], eax
jmp 0x100384e2
inc dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.100378dd
mov eax, dword [eax + 0x68]
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp + 0xc]
ja 0x100384b8
mov ecx, dword [ebp + 0xc]
sub ecx, eax
cmp ecx, dword [ebp + 8]
jbe 0x100384df
push dword [ebp - 0x18]
mov ecx, esi
call fcn.10038091
push dword [ebp + 8]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push str.CSDHelperThread::CleanUnValidCache_Remove:_d___d__d__d__r_n
push ebx
push 0xffffffffffffffff
push edi
call fcn.10024f90
add esp, 0x20
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10038492
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100dab20
mov ecx, esi
call fcn.100378d6
test eax, eax
jne 0x10038518
mov ecx, 0x1026a870
call fcn.1005b30d
push str.CSDHelperThread::CleanUnValidCache_Clean_Cache_File__r_n
push ebx
push 0xffffffffffffffff
push edi
call fcn.10024f90
add esp, 0x10
call fcn.10097197
ret 8
Function at 0x1003bb58
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10247460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push 4
push 0x101e6650
push ebx
mov dword [ebp - 0x21c], eax
call fcn.1009d96b
add esp, 0xc
test eax, eax
jne 0x1003bb8f
add ebx, 8
push ebx
call fcn.100977b6
pop ecx
cmp eax, 4
jb 0x1003bc5b
cmp word [ebx + 2], 0x3a
jne 0x1003bc5b
lea eax, [ebx + 4]
cmp word [eax], 0x5c
mov dword [ebp - 0x220], eax
jne 0x1003bc5b
push esi
push edi
mov esi, 0x101f2eec
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebx]
push eax
call fcn.1009d93f
mov word [ebp - 0x10], ax
pop ecx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
pop edi
pop esi
cmp eax, 4
jne 0x1003bc5b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.100971d0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x224], 0x104
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x1003bc5b
push dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp + 0x10]
push 0x101e78cc
dec eax
push eax
push dword [ebp - 0x21c]
call fcn.1009d44e
add esp, 0x14
jmp 0x1003bc6f
mov eax, dword [ebp + 0x10]
dec eax
push eax
push ebx
push dword [ebp - 0x21c]
call fcn.1009776c
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop ebx
call fcn.100970b0
leave
ret
Function at 0x1003bd18
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x10247460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x266]
push eax
call fcn.100971d0
push 0x12c
lea eax, [ebp - 0x268]
push eax
push esi
call fcn.1003bc7f
add esp, 0x18
test eax, eax
je 0x1003be7e
push edi
mov esi, 0x101f2eec
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
pop edi
jmp 0x1003bde8
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x470], ax
lea eax, [ebp - 0x46e]
push eax
call fcn.100971d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x470]
push eax
call fcn.100977b6
mov esi, eax
pop ecx
test esi, esi
jbe 0x1003bde4
push esi
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.100984b3
add esp, 0xc
test eax, eax
je 0x1003be11
inc word [ebp - 0x10]
cmp word [ebp - 0x10], 0x5a
jbe 0x1003bd82
push 8
lea eax, [ebp - 0x268]
push 0x101f2f34
push eax
call fcn.100984b3
add esp, 0xc
test eax, eax
jne 0x1003be34
lea eax, [ebp - 0x258]
jmp 0x1003be54
lea eax, [ebp + esi*2 - 0x268]
test eax, eax
je 0x1003bdef
push eax
lea eax, [ebp - 0x10]
push eax
push 0x101e78cc
push dword [ebp + 0x10]
push ebx
call fcn.1009d44e
add esp, 0x14
jmp 0x1003be7b
push 0x19
lea eax, [ebp - 0x268]
push 0x101f2f00
push eax
call fcn.100984b3
add esp, 0xc
test eax, eax
jne 0x1003be68
lea eax, [ebp - 0x236]
push eax
push 0x101f2ef4
push dword [ebp + 0x10]
push ebx
call fcn.1009d44e
add esp, 0x10
jmp 0x1003be7b
push dword [ebp + 0x10]
lea eax, [ebp - 0x268]
push ebx
push eax
call fcn.1003bb58
add esp, 0xc
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100970b0
leave
ret
Function at 0x1003d4e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x1003d57f
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x1003d57f
push edi
push 0x20
push 7
push 0x100080
push dword [ebp + 8]
call fcn.1003d220
mov ebx, eax
add esp, 0x14
xor eax, eax
cmp ebx, 0xffffffff
je 0x1003d581
push 9
mov dword [ebp - 0x28], edi
pop ecx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.1003c389
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1003d574
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x20], eax
push ebx
call dword [0x102700c0]
mov eax, edi
jmp 0x1003d581
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003dcd2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10247460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x1026a558], esi
jne 0x1003de41
lea eax, [ebp - 0x208]
push eax
push dword [0x10244f00]
mov dword [0x1026a558], 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x208], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x208], esi
je 0x1003dda0
xor eax, eax
push 0x1fc
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push esi
push eax
call fcn.100971d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push esi
push dword [0x10244efc]
mov dword [ebp - 0x20c], 0x1fe
push dword [ebp - 0x208]
call edi
push dword [ebp - 0x208]
call ebx
lea eax, [ebp - 0x204]
push eax
push dword [0x10244ef8]
call fcn.10097979
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [0x1026a554], eax
jmp 0x1003dda5
mov eax, dword [0x1026a554]
cmp eax, esi
jne 0x1003de46
lea eax, [ebp - 0x208]
push eax
push dword [0x10244f00]
mov dword [ebp - 0x208], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x208], esi
je 0x1003de41
xor eax, eax
push 0x1fc
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push esi
push eax
call fcn.100971d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push esi
push dword [0x10244ef4]
mov dword [ebp - 0x20c], 0x1fe
push dword [ebp - 0x208]
call edi
push dword [ebp - 0x208]
call ebx
lea eax, [ebp - 0x204]
push eax
push dword [0x10244ef8]
call fcn.10097979
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [0x1026a554], eax
jmp 0x1003de46
mov eax, dword [0x1026a554]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100970b0
leave
ret