joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d942
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 0x100937d8
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
push edi
call fcn.1001e739
test eax, eax
jne 0x1000d9f8
push 0x11c
xor esi, esi
push esi
push edi
call fcn.10046d90
add esp, 0xc
mov dword [edi], 0x11c
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
imul eax, dword [edi + 4], 0xa
push str.RtlGetVersion
push str.ntdll
add eax, dword [edi + 8]
or dword [ebx], 0xffffffff
mov dword [ebp - 0x654], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000da0e
lea ecx, [ebp - 0x530]
mov dword [ebp - 0x530], 0x11c
push ecx
call eax
test eax, eax
js 0x1000da0e
imul eax, dword [ebp - 0x52c], 0xa
add eax, dword [ebp - 0x528]
cmp eax, dword [ebp - 0x654]
jle 0x1000da0a
push 0x47
pop ecx
lea esi, [ebp - 0x530]
mov dword [ebx], 1
rep movsd dword es:[edi], dword [esi]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041739
leave
ret
mov dword [ebx], esi
jmp 0x1000d9f8
push 0x410
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.10046d90
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1000dac6
push str._ntoskrnl.exe
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1000dac6
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000dac6
push 8
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.1000ac23
mov ecx, eax
call fcn.1000af69
test eax, eax
je 0x1000dac6
test byte [ebp - 0x650], 8
je 0x1000dac6
mov eax, dword [ebp - 0x420]
mov ecx, eax
shr ecx, 0x10
movzx edx, ax
imul eax, ecx, 0xa
add eax, edx
cmp dword [ebp - 0x654], eax
jge 0x1000da0a
mov eax, dword [ebp - 0x41c]
xor esi, esi
shr eax, 0x10
inc esi
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
jmp 0x1000da0a
xor eax, eax
jmp 0x1000d9fb
Function at 0x1000db44
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x234
mov eax, 0x1006a279
call fcn.10041823
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x240], eax
mov ebx, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x238]
push eax
push 1
push esi
push dword [0x1008f100]
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000dd89
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x224]
push eax
push esi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 7
push eax
push esi
push dword [0x1008f104]
mov dword [ebp - 0x224], esi
push dword [ebp - 0x238]
call edi
test eax, eax
je 0x1000dbd2
cmp eax, 0xea
jne 0x1000dd7d
cmp dword [ebp - 0x228], 7
jne 0x1000dd7d
mov eax, dword [ebp - 0x224]
add eax, 0x64
push eax
call fcn.100413ba
mov esi, eax
pop ecx
test esi, esi
je 0x1000dd7d
push 4
push 0
push esi
call fcn.10046d90
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push esi
lea eax, [ebp - 0x228]
push eax
push 0
push dword [0x1008f104]
push dword [ebp - 0x238]
call edi
test eax, eax
jne 0x1000dd76
mov eax, dword [ebp - 0x224]
xor edx, edx
mov ecx, edx
mov dword [ebp - 0x22c], edx
add eax, esi
mov dword [ebp - 0x234], ecx
mov edi, esi
cmp esi, eax
jmp 0x1000dd6a
test byte [ebp - 0x22c], 1
jne 0x1000dcb9
push 4
push 0x1007019c
push edi
mov dword [ebp - 0x234], edx
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x1000dd44
push eax
lea eax, [ebp - 0x220]
push eax
push 0x106
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x1000dd44
push dword [ebp - 0x240]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1000dd44
inc eax
mov dword [ebp - 0x234], eax
jmp 0x1000dd44
test ecx, ecx
je 0x1000dd44
push 0x1007019c
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov edi, eax
test edi, edi
jne 0x1000dcdb
mov edi, dword [ebp - 0x230]
jmp 0x1000dcde
add edi, 8
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10046d90
xor ecx, ecx
add esp, 0xc
cmp word [edi], cx
je 0x1000dd11
push ecx
lea eax, [ebp - 0x220]
push eax
push 0x106
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor ecx, ecx
mov eax, dword [ebp - 0x23c]
test eax, eax
jne 0x1000dd25
xor ebx, ebx
cmp word [edi], cx
sete bl
jmp 0x1000dd3a
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x1000dd76
mov edi, dword [ebp - 0x230]
inc dword [ebp - 0x22c]
push edi
call fcn.1004a445
pop ecx
mov ecx, dword [ebp - 0x234]
push 0
lea edi, [edi + eax*2]
mov eax, dword [ebp - 0x224]
add edi, 2
add eax, esi
cmp edi, eax
pop edx
mov dword [ebp - 0x230], edi
jb 0x1000dc4e
push esi
call fcn.100413c3
pop ecx
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
call fcn.10041770
ret
Function at 0x1000dffd
Capabilities:
Check if file exists
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000e045
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000e031
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1000e040
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x1000e045
xor eax, eax
inc eax
jmp 0x1000e047
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1000e04a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 4], ecx
push eax
push 0x1000d35e
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1000e08e
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x1000e281
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.100066d1
pop ecx
test eax, eax
je 0x1000e29c
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
pop ebp
ret

Function at 0x1000e29f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
call fcn.100066d1
pop ecx
test eax, eax
je 0x1000e371
push ebx
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x468]
push 0
push eax
call fcn.10046d90
mov ax, word [ebp + 0x10]
mov dword [ebp - 0x468], ebx
xor ebx, ebx
push 0x10
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.10046d90
add esp, 0x18
lea eax, [ebp - 0x414]
test edi, edi
je 0x1000e322
push edi
push esi
push str.__s___s
push 0x208
push eax
call fcn.1000e632
add esp, 0x14
jmp 0x1000e336
push esi
push str.__s_
push 0x208
push eax
call fcn.1000e632
add esp, 0x10
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebx
test eax, eax
je 0x1000e371
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x424]
jmp 0x1000e373
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10041739
leave
ret
Function at 0x1000e750
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 0x80
test eax, eax
je 0x1000e770
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push esi
push 4
push 0
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop esi
cmp eax, 0xffffffff
jne 0x1000e791
xor eax, eax
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop ebp
ret

Function at 0x1000f3b6
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x1006a43a
call fcn.100417b5
call fcn.10001ccc
push eax
lea ecx, [ebp - 0x14]
call fcn.1000170c
lea eax, [ebp + 0x18]
xor ebx, ebx
push eax
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.1000d3c8
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 0x10], ebx
je 0x1000f3fd
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x18]
push ebx
push ecx
add eax, eax
push eax
push esi
jmp 0x1000f439
test esi, esi
je 0x1000f444
push esi
call fcn.1004a445
inc eax
pop ecx
cmp eax, 0x3fffffff
jg 0x1000f444
lea edi, [eax + eax]
mov eax, edi
call fcn.10041ab0
mov eax, esp
push ebx
push edi
push esi
push eax
call fcn.1000f31e
mov edi, eax
test edi, edi
je 0x1000f444
push edi
call fcn.1004d510
pop ecx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.10002163
mov eax, ebx
lea esp, [ebp - 0x28]
call fcn.1004175f
ret
Function at 0x1000f7ff
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
call fcn.1000f37d
push dword [ebp + 8]
lea ecx, [ebx + 0x1c]
call fcn.100021a6
mov eax, dword [ebp + 0xc]
xor esi, esi
push 0x7d0
push esi
push dword [ebp + 8]
mov ecx, ebx
mov dword [ebx + 4], eax
call fcn.10010209
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x1000f840
xor eax, eax
jmp 0x1000f8eb
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp - 8], esi
jne 0x1000f8b1
lea ecx, [eax - 7]
cmp ecx, 0x31ffff8
ja 0x1000f8b1
add eax, 4
push eax
mov dword [ebp - 0xc], eax
call fcn.100413ba
mov edi, eax
pop ecx
test edi, edi
je 0x1000f8b1
push dword [ebp - 0xc]
push esi
push edi
call fcn.10046d90
add esp, 0xc
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp - 4]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000f8a5
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc], eax
je 0x1000f8b1
push 1
push edi
call fcn.100413ac
pop ecx
pop ecx
mov edi, esi
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.1001026b
test edi, edi
je 0x1000f8d7
push esi
push dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.1000ffad
xor esi, esi
inc esi
push esi
push edi
call fcn.100413ac
pop ecx
pop ecx
cmp dword [ebp + 0xc], 0
pop edi
je 0x1000f8e9
push dword [ebp + 8]
lea ecx, [ebx + 0x14]
call fcn.1000f75e
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x1000fbb3
Capabilities:
Write file on windows

Disassembly:
push 0x18
mov eax, 0x1006a584
call fcn.10041781
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 0x18], 0xfeff
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
push edi
push edi
push 0x80
push 2
push edi
push 0x40000000
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.1000ab40
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x1000fccd
cmp dword [ebp + 0xc], edi
je 0x1000fc27
push edi
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000fc1d
call fcn.1000ab29
jmp 0x1000fc1f
mov eax, edi
test eax, eax
jne 0x1000fccd
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
mov byte [ebp - 4], 1
mov esi, dword [eax]
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x1000fcc1
mov eax, dword [ebp - 0x10]
push dword [esi + 0x10]
push str.__s__r_n
push dword [ebp + 0xc]
push ebx
push eax
call fcn.1000f3b6
add esp, 0x14
test eax, eax
je 0x1000fcc4
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
cmp ecx, eax
je 0x1000fc9a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push str._s_s_r_n
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x10]
call fcn.1000f3b6
add esp, 0x18
test eax, eax
je 0x1000fcc4
lea ecx, [ebp + 8]
call fcn.10006a8b
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 0x14]
jne 0x1000fc6c
push 0x100701ec
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x10]
call fcn.1000f3b6
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.10006a8b
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
cmp esi, dword [eax + 0xc]
jne 0x1000fc47
xor edi, edi
inc edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x1000fcd8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.1004174a
ret 8
Function at 0x100107b6
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.update
mov edi, 0x10092670
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
push str.updatetemp
mov ecx, esi
call fcn.10010653
push ebx
push edi
push str.productpath
mov ecx, esi
call fcn.10010653
push ebx
push edi
push str.instdir
mov ecx, esi
call fcn.10010653
push ebx
push edi
push str.datadir
mov ecx, esi
call fcn.10010653
push ebx
push 3
push str.clientver
mov ecx, esi
call fcn.100106e5
mov edi, 0x11c
lea eax, [ebp - 0x328]
push edi
push ebx
push eax
call fcn.10046d90
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x328], edi
push eax
lea eax, [ebp - 0x328]
mov dword [ebp - 0x32c], ebx
push eax
call fcn.1000d942
add esp, 0x14
add edi, 0xffffffe8
test eax, eax
lea eax, [ebp - 0x20c]
je 0x1001089e
push dword [ebp - 0x31c]
push dword [ebp - 0x320]
push dword [ebp - 0x324]
push str._d._d._04d
push 0x208
push eax
call fcn.1001078c
add esp, 0x18
jmp 0x100108aa
push str.5.0.0000
push edi
push eax
call fcn.1000b32f
push ebx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
push str.sysver
call fcn.10010653
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push eax
push 0x100701c4
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.1000e632
add esp, 0x10
lea eax, [ebp - 0x20c]
mov ecx, esi
push ebx
push eax
push str.syslang
call fcn.10010653
push ebx
push 0x100702b4
push str.uilang
mov ecx, esi
call fcn.10010653
push ebx
push str.H_HOME
push str.oemid
mov ecx, esi
call fcn.10010653
push ebx
push 0x1006f82c
push str.userid
mov ecx, esi
call fcn.10010653
mov ecx, esi
call fcn.10010608
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041739
leave
ret
Function at 0x100111c4
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x1006a559
call fcn.10041781
mov esi, dword [ebp + 0xc]
lea edi, [ecx + 4]
mov ebx, dword [ebp + 8]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x10]
cmp dword [ecx - 0xc], eax
je 0x10011352
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], edx
je 0x10011352
push ecx
call fcn.1000db20
pop ecx
test eax, eax
je 0x1001124c
push dword [esi + 4]
push dword [esi + 0x10]
call fcn.1000db44
pop ecx
pop ecx
test eax, eax
je 0x10011238
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0x20
jne 0x1001134d
push dword [esi + 0x18]
push eax
push dword [esi + 0x10]
call fcn.1000ce15
add esp, 0xc
test eax, eax
jne 0x1001134d
push dword [esi + 0x10]
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1001134d
mov eax, dword [esi + 0x14]
and dword [ebp + 8], 0
mov dword [ebp - 0x10], 1
cmp dword [eax - 0xc], 0x20
jne 0x10011277
push dword [esi + 0x18]
push eax
push dword [esi + 4]
call fcn.1000ce15
add esp, 0xc
test eax, eax
je 0x1001134d
call fcn.10001ccc
push eax
lea ecx, [ebp + 0xc]
call fcn.1000170c
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push eax
push dword [esi + 4]
call fcn.1000cee1
pop ecx
pop ecx
test eax, eax
je 0x100112e0
push dword [esi + 0xc]
push dword [ebp + 0xc]
call fcn.1000d019
pop ecx
pop ecx
test eax, eax
je 0x100112e0
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
call fcn.1000a687
lea ecx, [esi + 8]
call fcn.10001c06
push dword [ebp + 0xc]
mov ecx, edi
push 0x1006f798
push ebx
call fcn.1000fdb3
push 0
push 0x10070358
push ebx
mov ecx, edi
call fcn.1000fdb3
jmp 0x100112e6
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10002163
cmp dword [ebp + 8], 0
je 0x1001134d
push dword [esi + 0xc]
mov ecx, edi
push 0x1006f798
push ebx
call fcn.1000fdb3
push dword [esi + 4]
mov ecx, edi
push str.path
push ebx
call fcn.1000fdb3
mov eax, dword [esi + 0x14]
mov ecx, edi
cmp dword [eax - 0xc], 0x20
jne 0x10011329
push eax
jmp 0x1001132b
push 0
push 0x10070358
push ebx
call fcn.1000fdb3
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.1000a687
lea eax, [esi + 0x14]
push eax
lea ecx, [esi + 8]
call fcn.1000a687
mov edx, dword [ebp - 0x10]
jmp 0x10011359
mov dword [ebp - 0x10], 1
test edx, edx
je 0x10011399
push 0
push str.pver
push ebx
mov ecx, edi
call fcn.1000fdb3
push 0
push str.ppath
push ebx
mov ecx, edi
call fcn.1000fdb3
push 0
push str.pmd5
push ebx
mov ecx, edi
call fcn.1000fdb3
push 0
push str.pextcb
push ebx
mov ecx, edi
call fcn.1000fdb3
cmp dword [ebp - 0x10], 0
je 0x100113b7
lea ecx, [esi + 0xc]
call fcn.10001c06
lea ecx, [esi + 0x10]
call fcn.10001c06
lea ecx, [esi + 0x14]
call fcn.10001c06
call fcn.1004174a
ret 8
Function at 0x10013821
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x10013831
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
pop ebp
jmp dword [sym.imp.KERNEL32.dll_DeleteFileW]

Function at 0x100139c3
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.10014739
push 0x1007043c
lea eax, [ebp - 0x24]
push eax
push 0x10070450
push esi
call fcn.10014293
mov ecx, dword [ebp - 4]
add esp, 0x1c
xor ecx, ebp
pop esi
call fcn.10041739
leave
ret 0xc

Function at 0x10013a39
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
push 0x1007043c
push eax
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.10014293
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x10]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call fcn.100151d3
mov ecx, dword [ebp - 4]
add esp, 0x28
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10041739
leave
ret 0x18

Function at 0x10013c9e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x11
pop ecx
mov esi, ebx
lea edi, [ebp - 0x48]
push 0x10070460
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.10013ab9
pop ecx
pop ecx
mov ecx, dword [ebx + 0x40]
lea esi, [ebp - 0x48]
shr ecx, 7
push 0x11
neg ecx
sub esi, ebx
pop edx
mov eax, dword [esi + ebx]
xor eax, dword [ebx]
and eax, ecx
xor dword [ebx], eax
lea ebx, [ebx + 4]
sub edx, 1
jne 0x10013cdb
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041739
leave
ret
Function at 0x10014739
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push 0x20
push dword [ebp + 0xc]
push eax
call fcn.10046290
mov al, byte [ebp - 5]
add esp, 0xc
and byte [ebp - 0x24], 0xf8
and al, 0x3f
mov ecx, dword [ebp + 0x10]
or al, 0x40
xor esi, esi
mov byte [ebp - 5], al
mov eax, esi
movd xmm1, dword [eax + ecx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movups xmmword [ebp + eax*4 - 0x1a4], xmm1
add eax, 4
cmp eax, 0x20
jb 0x10014777
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.10014868
lea eax, [ebp - 0x124]
push eax
push eax
call fcn.10014bf9
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.10014b0c
lea eax, [ebp - 0xa4]
push eax
call fcn.100147fd
add esp, 0x20
mov al, byte [ebp + esi*4 - 0xa4]
mov byte [edi + esi], al
inc esi
cmp esi, 0x20
jb 0x100147dd
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10041739
leave
ret

Function at 0x100147fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x20
pop ecx
push 0x100704a8
mov esi, ebx
lea edi, [ebp - 0x84]
push ebx
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.100146ee
mov ecx, dword [ebx + 0x7c]
lea esi, [ebp - 0x84]
add esp, 0xc
shr ecx, 7
and ecx, 1
neg ecx
sub esi, ebx
push 0x20
pop edx
mov eax, dword [esi + ebx]
xor eax, dword [ebx]
and eax, ecx
xor dword [ebx], eax
lea ebx, [ebx + 4]
sub edx, 1
jne 0x10014848
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041739
leave
ret

Function at 0x1001505a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
dec eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
sub ebx, edi
sub edi, esi
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], esi
mov dword [ebp + 0x18], 0x40
mov edx, dword [esi]
lea ecx, [edi + esi]
mov eax, dword [ecx + ebx]
xor edx, eax
and edx, dword [ebp - 4]
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
xor eax, edx
sub dword [ebp + 0x18], 1
mov dword [ecx + esi], eax
lea esi, [esi + 4]
jne 0x1001507f
pop edi
pop esi
pop ebx
leave
ret