joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10028408
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x101d0b46
call fcn.10099809
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp dword [eax - 8], ebx
jne 0x1002842f
mov dword [ebp - 0x10], 1
jmp 0x10028510
mov eax, dword [0x10211078]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
lea eax, [ebp + 0xc]
push eax
cmp dword [ebp + 0xc], ebx
je 0x1002844e
call fcn.10028291
mov byte [ebp - 4], 1
jmp 0x10028457
call fcn.100282df
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 8]
call fcn.100cf0e0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.100cef50
mov esi, dword [ebp + 8]
push ebx
push ebx
push 2
call fcn.100f7cc0
push eax
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100284b5
cmp dword [0x10269fe8], ebx
je 0x10028504
push str.MailText.dat
push str.SaveMailText_create_file__s__fail
push str.MailInfo
push 4
push 0x10269f7c
call fcn.10025270
add esp, 0x14
jmp 0x10028504
mov eax, dword [edi]
push ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x14]
push ecx
add eax, eax
push eax
push ebx
mov ecx, edi
call fcn.100cfc20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [0x10269fe8], ebx
je 0x100284fd
push dword [ebp - 0x14]
push eax
push str.SaveMailText_after_write_file__bRet__d__dwWrite__lu_
push str.MailInfo
push 4
push 0x10269f7c
call fcn.10025270
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100cef50
mov eax, dword [ebp - 0x10]
call fcn.100998e1
ret 8
Function at 0x1002851b
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x101d0b79
call fcn.10099809
mov esi, ecx
mov ecx, dword [ebp + 8]
call fcn.100cecc0
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
jne 0x1002853f
xor eax, eax
jmp 0x100286d2
mov eax, dword [0x10211078]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
cmp dword [ebp + 0xc], ebx
je 0x10028563
call fcn.10028291
mov byte [ebp - 4], 1
jmp 0x1002856c
call fcn.100282df
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x10]
call fcn.100cf0e0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.100cef50
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x100285d8
cmp dword [0x10269fe8], ebx
je 0x100285c7
push str.MailText.dat
push str.GetMailText_read_file__s__fail
push str.MailInfo
push 4
push 0x10269f7c
call fcn.10025270
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100cef50
jmp 0x10028538
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov edi, 0x10269f7c
cmp dword [0x10269fe8], ebx
je 0x10028605
push esi
push str.GetMailText_file_size:_lu_B
push str.MailInfo
push 4
push edi
call fcn.10025270
add esp, 0x14
cmp esi, 0xffffffff
je 0x1002869d
cmp esi, ebx
je 0x1002869d
mov eax, esi
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.10066294
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x10028656
cmp dword [0x10269fe8], ebx
je 0x1002869d
push str.GetMailText_new_memory_fail
push str.MailInfo
push 4
push edi
call fcn.10025270
add esp, 0x10
jmp 0x1002869d
lea ecx, [esi + 2]
push ecx
push ebx
push eax
call fcn.10099920
add esp, 0xc
push ebx
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [0x10269fe8], ebx
je 0x1002869d
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push str.GetMailText_after_read__bRead__d___dwRead__lu___text:_s
push str.MailInfo
push 4
push edi
call fcn.10025270
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.100cef50
cmp dword [ebp - 0x14], ebx
je 0x10028538
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.100cf1d0
push dword [ebp - 0x14]
call fcn.1006629f
xor eax, eax
pop ecx
inc eax
call fcn.100998e1
ret 8
Function at 0x1002b058
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x24], 0
je 0x1002b074
add ecx, 0x28
push ecx
mov ecx, dword [ebp + 8]
call fcn.1002a2d5
xor eax, eax
inc eax
pop ebp
ret 4
pop ebp
jmp fcn.1002a844

Function at 0x1002d8f0
Capabilities:
Write file on windows

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

Disassembly:
push 0x214
mov eax, 0x101d2f67
call fcn.10099872
xor ebx, ebx
mov esi, 0x1026d1f8
cmp dword [0x1026d1f4], ebx
je 0x10037f02
cmp dword [ebp + 8], ebx
je 0x1003802e
push 0x208
push ebx
push esi
call fcn.10099920
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.10099920
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 0x10037f9a
lea eax, [ebp - 0x218]
push eax
call fcn.10099f06
pop ecx
cmp eax, ebx
jbe 0x10037f66
lea eax, [ebp + eax*2 - 0x21a]
cmp word [eax], 0x5c
jne 0x10037f66
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.1009a256
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x218]
je 0x10037f8b
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
jmp 0x10037f9a
push 0x103
push eax
push esi
call fcn.10099ebc
add esp, 0xc
push esi
lea ecx, [ebp - 0x21c]
call fcn.100ce7b0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 8], ebx
je 0x10037ff7
push eax
push esi
call fcn.10099e71
push str.TEC_MailBackup
push esi
call fcn.10099e43
add esp, 0x10
push esi
lea ecx, [ebp - 0x220]
call fcn.100ce7b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x220]
call fcn.10037931
mov dword [0x1026d1f4], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
call fcn.100cef50
cmp dword [0x10269fe8], ebx
je 0x1003801f
push dword [0x1026d1f4]
push esi
push str.CSDGlobalShare::GetBackupDirectory___s__bGet__lu__r_n
push str.SDMailGlobal
push 1
push 0x10269f7c
call fcn.10025270
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.100cef50
mov eax, dword [0x1026d1f4]
neg eax
sbb eax, eax
and eax, esi
call fcn.100998f5
ret
Function at 0x10039ed0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x18
mov eax, 0x101d33dd
call fcn.10099809
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [0x10269fe8], 0
mov esi, eax
mov ebx, 0x10269f7c
je 0x10039f09
push str.CSDHelperThread::CleanUnValidCache_r_n
push str.OutlookCtrlX
push 0xffffffffffffffff
push ebx
call fcn.10025270
add esp, 0x10
cmp dword [ebp + 0xc], esi
jae 0x10039f1a
sub esi, dword [ebp + 0xc]
cmp dword [ebp + 8], esi
ja 0x10039ff1
mov esi, 0x1026d894
mov ecx, esi
call fcn.10039345
test eax, eax
je 0x10039fbe
push 1
push 0x1026d874
lea ecx, [ebp - 0x24]
call fcn.100dd1f0
and dword [ebp - 4], 0
call edi
and dword [ebp - 0x10], 0
mov ecx, esi
mov dword [ebp + 0xc], eax
call fcn.10039349
mov dword [ebp - 0x14], eax
jmp 0x10039fae
inc dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.1003934c
mov edi, dword [eax + 0x68]
cmp edi, dword [ebp + 0xc]
ja 0x10039f79
mov eax, dword [ebp + 0xc]
sub eax, edi
cmp eax, dword [ebp + 8]
jbe 0x10039fab
push dword [ebp - 0x18]
mov ecx, esi
call fcn.10039b4f
cmp dword [0x10269fe8], 0
je 0x10039fab
push dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push str.CSDHelperThread::CleanUnValidCache_Remove:_d___d__d__d__r_n
push str.OutlookCtrlX
push 0xffffffffffffffff
push ebx
call fcn.10025270
add esp, 0x20
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10039f56
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100dd250
mov ecx, esi
call fcn.10039345
test eax, eax
jne 0x10039ff1
mov ecx, 0x1026d870
call fcn.1005da02
cmp dword [0x10269fe8], 0
je 0x10039ff1
push str.CSDHelperThread::CleanUnValidCache_Clean_Cache_File__r_n
push str.OutlookCtrlX
push 0xffffffffffffffff
push ebx
call fcn.10025270
add esp, 0x10
call fcn.100998e1
ret 8
Function at 0x1003d69f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1024a460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push 4
push 0x101e9650
push ebx
mov dword [ebp - 0x21c], eax
call fcn.100a00bb
add esp, 0xc
test eax, eax
jne 0x1003d6d6
add ebx, 8
push ebx
call fcn.10099f06
pop ecx
cmp eax, 4
jb 0x1003d7a2
cmp word [ebx + 2], 0x3a
jne 0x1003d7a2
lea eax, [ebx + 4]
cmp word [eax], 0x5c
mov dword [ebp - 0x220], eax
jne 0x1003d7a2
push esi
push edi
mov esi, 0x101f63a4
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.100a008f
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 0x1003d7a2
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.10099920
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 0x1003d7a2
push dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp + 0x10]
push 0x101ea8cc
dec eax
push eax
push dword [ebp - 0x21c]
call fcn.1009fb9e
add esp, 0x14
jmp 0x1003d7b6
mov eax, dword [ebp + 0x10]
dec eax
push eax
push ebx
push dword [ebp - 0x21c]
call fcn.10099ebc
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop ebx
call fcn.100997fa
leave
ret
Function at 0x1003d85f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x1024a460]
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.10099920
push 0x12c
lea eax, [ebp - 0x268]
push eax
push esi
call fcn.1003d7c6
add esp, 0x18
test eax, eax
je 0x1003d9c5
push edi
mov esi, 0x101f63a4
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 0x1003d92f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x470], ax
lea eax, [ebp - 0x46e]
push eax
call fcn.10099920
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.10099f06
mov esi, eax
pop ecx
test esi, esi
jbe 0x1003d92b
push esi
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.1009ac03
add esp, 0xc
test eax, eax
je 0x1003d958
inc word [ebp - 0x10]
cmp word [ebp - 0x10], 0x5a
jbe 0x1003d8c9
push 8
lea eax, [ebp - 0x268]
push 0x101f63ec
push eax
call fcn.1009ac03
add esp, 0xc
test eax, eax
jne 0x1003d97b
lea eax, [ebp - 0x258]
jmp 0x1003d99b
lea eax, [ebp + esi*2 - 0x268]
test eax, eax
je 0x1003d936
push eax
lea eax, [ebp - 0x10]
push eax
push 0x101ea8cc
push dword [ebp + 0x10]
push ebx
call fcn.1009fb9e
add esp, 0x14
jmp 0x1003d9c2
push 0x19
lea eax, [ebp - 0x268]
push 0x101f63b8
push eax
call fcn.1009ac03
add esp, 0xc
test eax, eax
jne 0x1003d9af
lea eax, [ebp - 0x236]
push eax
push 0x101f63ac
push dword [ebp + 0x10]
push ebx
call fcn.1009fb9e
add esp, 0x10
jmp 0x1003d9c2
push dword [ebp + 0x10]
lea eax, [ebp - 0x268]
push ebx
push eax
call fcn.1003d69f
add esp, 0xc
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100997fa
leave
ret
Function at 0x1003f027
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 0x1003f0c6
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x1003f0c6
push edi
push 0x20
push 7
push 0x100080
push dword [ebp + 8]
call fcn.1003ed67
mov ebx, eax
add esp, 0x14
xor eax, eax
cmp ebx, 0xffffffff
je 0x1003f0c8
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.1003ded0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1003f0bb
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 [0x102730c0]
mov eax, edi
jmp 0x1003f0c8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003f819
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1024a460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x1026d558], esi
jne 0x1003f988
lea eax, [ebp - 0x208]
push eax
push dword [0x10247f00]
mov dword [0x1026d558], 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 0x1003f8e7
xor eax, eax
push 0x1fc
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push esi
push eax
call fcn.10099920
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push esi
push dword [0x10247efc]
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 [0x10247ef8]
call fcn.1009a0c9
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [0x1026d554], eax
jmp 0x1003f8ec
mov eax, dword [0x1026d554]
cmp eax, esi
jne 0x1003f98d
lea eax, [ebp - 0x208]
push eax
push dword [0x10247f00]
mov dword [ebp - 0x208], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x208], esi
je 0x1003f988
xor eax, eax
push 0x1fc
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push esi
push eax
call fcn.10099920
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push esi
push dword [0x10247ef4]
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 [0x10247ef8]
call fcn.1009a0c9
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [0x1026d554], eax
jmp 0x1003f98d
mov eax, dword [0x1026d554]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100997fa
leave
ret
Function at 0x1003ff35
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWARETECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003ffc9
cmp dword [ebp - 4], ebx
je 0x1003ffc9
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.OutlookMailDebug
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x1003ffa0
cmp dword [ebp - 0xc], 1
sete al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push ebx
push str.OutlookMailDebugLogLevel
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
jmp 0x1003ffcb
xor eax, eax
pop ebx
leave
ret 4

Function at 0x100401a4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1024a460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, esi
je 0x10040266
cmp edi, esi
je 0x10040266
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.10099920
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push ebx
call fcn.1001c440
lea eax, [ebp - 0x20c]
push eax
call fcn.10099f06
add esp, 0x20
test eax, eax
je 0x10040266
push esi
push esi
push 3
push esi
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1004025e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x10040255
mov dword [ebp - 0x210], 1
jmp 0x10040257
mov dword [edi], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x210]
jmp 0x10040268
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100997fa
leave
ret 8

Function at 0x10040402
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1024a460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x1004046c
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10099920
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push esi
call fcn.1001c440
lea eax, [ebp - 0x20c]
push eax
call fcn.10099f06
add esp, 0x20
test eax, eax
je 0x1004046c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100997fa
leave
ret 4
Function at 0x1004047b
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1024a460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x418], eax
test eax, eax
je 0x10040548
test ebx, ebx
je 0x10040548
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.10099920
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x418]
call fcn.1001c440
xor eax, eax
push edi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10099920
push esi
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push ebx
call fcn.1001c440
lea eax, [ebp - 0x414]
push eax
call fcn.10099f06
add esp, 0x3c
pop edi
pop esi
test eax, eax
je 0x10040548
lea eax, [ebp - 0x20c]
push eax
call fcn.10099f06
pop ecx
test eax, eax
je 0x10040548
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x1004054a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100997fa
leave
ret 8

Function at 0x10040559
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1024a460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
je 0x10040617
cmp ebx, esi
je 0x10040617
cmp dword [ebp + 0x10], esi
je 0x10040617
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.10099920
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push edi
call fcn.1001c440
lea eax, [ebp - 0x20c]
push eax
call fcn.10099f06
add esp, 0x20
test eax, eax
je 0x10040617
push esi
push esi
push 2
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10040613
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x210], esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10040619
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100997fa
leave
ret 0xc
Function at 0x10043165
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x618
mov eax, 0x101d465d
call fcn.10099872
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 0x61c]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfiles
mov edi, reloc.WS2_32.dll_accept
xor ebx, ebx
push edi
mov dword [ebp - 0x61c], ebx
call esi
cmp eax, ebx
jne 0x100432ff
cmp dword [ebp - 0x61c], ebx
je 0x100432ff
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.10099920
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push str.DefaultProfile
push dword [ebp - 0x61c]
mov dword [ebp - 0x620], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x61c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x61c], ebx
call fcn.10099f06
pop ecx
test eax, eax
je 0x100432ff
push 0x101e6ae4
lea ecx, [ebp - 0x624]
call fcn.100ce7b0
mov dword [ebp - 4], ebx
push str.9375CFF0413111d3B88A00104B2A6676
lea eax, [ebp - 0x218]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfiles
lea eax, [ebp - 0x624]
push 0x101f7c20
push eax
call fcn.100d1ed0
add esp, 0x14
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x624]
push edi
call esi
cmp eax, ebx
jne 0x100432f0
cmp dword [ebp - 0x61c], ebx
je 0x100432f0
push 0x3ff
lea eax, [ebp - 0x617]
push ebx
push eax
mov byte [ebp - 0x618], bl
call fcn.10099920
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x618]
push eax
push ebx
push ebx
push str.ED475418_B0D6_11D2_8C3B_00104B2A6676
push dword [ebp - 0x61c]
mov dword [ebp - 0x620], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100432c2
mov dword [ebp - 0x620], ebx
push dword [ebp - 0x61c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x620]
mov dword [ebp - 0x61c], ebx
shr esi, 2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.100cef50
mov eax, esi
jmp 0x10043301
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.100cef50
xor eax, eax
call fcn.100998f5
ret