joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009d3a
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x1006af0e
call fcn.10043a69
mov esi, dword [ebp + 8]
call fcn.10001240
test al, al
je 0x10009e04
and word [ebp - 0x218], 0
push 0x206
lea eax, [ebp - 0x216]
push 0
push eax
call fcn.10042010
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x218]
cmp word [eax - 2], 0x5c
je 0x10009da9
mov word [eax], 0x5c
push 0x100884b0
lea ecx, [ebp - 0x21c]
call fcn.10004658
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push str.__sregsvr32.exe____s___u__s
push eax
call fcn.100093b9
mov eax, dword [ebp - 0x21c]
add esp, 0x10
push dword [eax - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.1000814a
push eax
call fcn.10010d30
pop ecx
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.1000285b
jmp 0x10009e2a
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10009e2a
push 0x10071aac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10009e23
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.10043aec
ret

Function at 0x10009e42
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov byte [ebp - 2], bl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10009f22
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [ebp - 1], 1
mov dword [ebp - 8], eax
call edi
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], ebx
jle 0x10009f20
call fcn.10009838
cmp eax, ebx
je 0x10009f1c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4ff
push esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x10009f20
cmp eax, 1
jne 0x10009eff
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x10009ecf
cmp dword [ebp - 0x28], 0x12
je 0x10009ecf
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
call esi
test eax, eax
jne 0x10009ebf
call edi
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jbe 0x10009eed
sub eax, ecx
mov ecx, eax
jmp 0x10009eef
sub ecx, eax
mov esi, dword [ebp + 8]
cmp ecx, esi
jb 0x10009efb
dec dword [ebp - 8]
jmp 0x10009f11
sub esi, ecx
jmp 0x10009f11
cmp eax, 0x102
jne 0x10009f0e
dec dword [ebp - 8]
mov esi, dword [ebp + 8]
jmp 0x10009f11
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
jne 0x10009e7e
jmp 0x10009f20
mov byte [ebp - 2], 1
pop edi
pop esi
mov al, byte [ebp - 2]
pop ebx
leave
ret
Function at 0x1000a913
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10086e84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push 0x40e
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x412]
push esi
push eax
mov word [ebp - 0x414], si
call fcn.10042010
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, esi
jl 0x1000a979
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000a9a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1000a99e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, esi
jl 0x1000a9b6
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
call fcn.10009386
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041ffa
leave
ret

Function at 0x1000b31c
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 0x10
mov eax, 0x1006b24a
call fcn.10043a00
lea eax, [ebp - 0x10]
push eax
push 2
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x1000b3be
push ebx
lea ecx, [ebp - 0x18]
call fcn.10004a50
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.1000315c
push eax
lea ecx, [ebp - 0x14]
call fcn.1000acc3
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1000603a
push 0x10071f90
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.10009352
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call esi
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x10]
call esi
lea ecx, [edi - 0x10]
call fcn.1000285b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.1000285b
cmp dword [ebp - 0x18], ebx
je 0x1000b3be
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x10], ebx
je 0x1000b3cc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10043ad8
ret
Function at 0x1000bd38
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x430
mov eax, 0x1006b3ce
call fcn.10043a69
mov eax, dword [ebp + 8]
push str.SoftwareMozillaNativeMessagingHostswebsecurity
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x434], eax
call fcn.1000acc3
lea eax, [ebp - 0x42c]
push eax
xor esi, esi
mov ebx, 0xf013f
push ebx
push esi
push dword [ebp - 0x430]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x1000bdb1
push esi
lea eax, [ebp - 0x42c]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp - 0x430]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x1000be98
mov edi, 0x208
push edi
lea eax, [ebp - 0x426]
push esi
push eax
mov word [ebp - 0x428], si
call fcn.10042010
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
push esi
mov ebx, 0x10070adc
push ebx
push dword [ebp - 0x42c]
mov dword [ebp - 0x438], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x21a]
push esi
push eax
mov word [ebp - 0x21c], si
call fcn.10042010
push dword [ebp - 0x434]
lea eax, [ebp - 0x21c]
push eax
call fcn.10042c3b
add esp, 0x14
call fcn.10002d13
test eax, eax
je 0x1000be42
lea eax, [ebp - 0x21c]
push 0x105
push eax
call fcn.10002dad
pop ecx
pop ecx
cmp dword [ebp - 0x43c], esi
jne 0x1000be63
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.10042bdf
test eax, eax
pop ecx
pop ecx
je 0x1000be8c
lea eax, [ebp - 0x21c]
push eax
call fcn.100428d5
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x21c]
push eax
push 1
push esi
push ebx
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x430]
add ecx, 0xfffffff0
call fcn.1000285b
call fcn.10043aec
ret
Function at 0x1000bf1d
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b401
mov eax, dword fs:[0]
push eax
mov eax, 0x882c
call fcn.10042c60
mov eax, dword [0x10086e84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8814]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x8814], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000c0e4
mov dword [ebp - 0x8818], esi
push 0x7fe
lea eax, [ebp - 0x80e]
push esi
push eax
mov word [ebp - 0x810], si
call fcn.10042010
push 0x7ffe
lea eax, [ebp - 0x880e]
push esi
push eax
mov word [ebp - 0x8810], si
call fcn.10042010
add esp, 0x18
lea eax, [ebp - 0x8828]
push eax
lea eax, [ebp - 0x8810]
push eax
lea eax, [ebp - 0x881c]
push eax
push esi
lea eax, [ebp - 0x8820]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x8818]
mov dword [ebp - 0x8820], 0x400
push dword [ebp - 0x8814]
mov dword [ebp - 0x8828], 0x4000
mov dword [ebp - 0x881c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
cmp ebx, esi
jne 0x1000c074
cmp dword [ebp - 0x881c], 1
jne 0x1000c074
lea ecx, [ebp - 0x8838]
call fcn.10006542
mov eax, dword [ebp - 0x881c]
mov dword [ebp - 0x8834], eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x8838]
mov dword [ebp - 4], esi
call fcn.10009386
lea eax, [ebp - 0x8810]
push eax
lea ecx, [ebp - 0x8830]
call fcn.10009386
lea eax, [ebp - 0x8838]
push eax
mov ecx, edi
call fcn.1000beb1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8838]
call fcn.10006563
inc dword [ebp - 0x8818]
cmp ebx, 0x103
je 0x1000c08b
cmp ebx, 0x57
jne 0x1000bf85
lea eax, [ebp - 0x8824]
push eax
mov ecx, edi
call fcn.10008521
jmp 0x1000c0bf
lea ecx, [ebp - 0x8824]
call fcn.10004397
push dword [eax]
push dword [ebp - 0x8814]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x8824]
call fcn.10002829
push edi
push dword [edi + 4]
lea ecx, [ebp - 0x882c]
call fcn.100060c8
lea eax, [ebp - 0x882c]
push eax
lea ecx, [ebp - 0x8824]
call fcn.10002875
test al, al
je 0x1000c09b
cmp dword [ebp - 0x8814], esi
je 0x1000c0f8
push dword [ebp - 0x8814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041ffa
leave
ret
Function at 0x1000c112
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x1006b449
call fcn.10043a00
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x1000c1c5
cmp word [esi], bx
je 0x1000c1c5
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
jne 0x1000c15f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1000c155
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x1000c22f
push 0x100884b0
lea ecx, [ebp + 8]
call fcn.10004658
cmp byte [ebp + 0x10], bl
je 0x1000c1cc
push esi
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push str.DefaultUninstall
push str._s__d__s
push eax
mov dword [ebp - 4], ebx
call fcn.100093b9
add esp, 0x14
lea ecx, [ebp - 0x18]
call fcn.10008176
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.1000bf1d
mov esi, dword [ebp + 8]
pop ecx
push ebx
push esi
push ebx
push ebx
call sub.SETUPAPI.dll_InstallHinfSectionW
lea eax, [ebp - 0x18]
push eax
call fcn.100088f0
pop ecx
lea ecx, [ebp - 0x18]
jmp 0x1000c222
mov edi, 0x80070057
jmp 0x1000c22f
push esi
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push str.DefaultInstall
push str._s__d__s
push eax
mov dword [ebp - 4], 2
call fcn.100093b9
add esp, 0x14
lea ecx, [ebp - 0x24]
call fcn.10008176
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.1000bf1d
mov esi, dword [ebp + 8]
pop ecx
push ebx
push esi
push ebx
push ebx
call sub.SETUPAPI.dll_InstallHinfSectionW
lea eax, [ebp - 0x24]
push eax
call fcn.100088f0
pop ecx
lea ecx, [ebp - 0x24]
call fcn.1000ad35
lea ecx, [esi - 0x10]
call fcn.1000285b
mov eax, edi
call fcn.10043ad8
ret
Function at 0x1000f109
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.10042010
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, esi
mov dword [ebp - 0x74], 0x44
je 0x1000f1b8
cmp word [eax], si
je 0x1000f1b8
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push esi
push esi
push esi
push 1
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1000f1b8
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov eax, dword [ebp - 0x14]
push esi
mov dword [ebp + 8], eax
push esi
lea eax, [ebp + 8]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x1000f197
push 0x4ff
push 0xffffffffffffffff
push esi
lea eax, [ebp + 8]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
jne 0x1000f1d9
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
cmp dword [ebp - 0x2c], 0x12
je 0x1000f1d9
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push eax
call edi
test eax, eax
jne 0x1000f1bf
jmp 0x1000f168

Function at 0x1000f78e
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xa34
mov eax, 0x1006ba5b
call fcn.10043a69
mov esi, dword [ebp + 8]
call fcn.10002d13
neg eax
sbb eax, eax
and eax, 0x7fffbfff
add eax, 0x80004001
mov edi, eax
js 0x1000f895
xor ebx, ebx
cmp esi, ebx
je 0x1000f866
cmp word [esi], bx
je 0x1000f866
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
jne 0x1000f7f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1000f7ef
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x1000f895
push 0xa28
lea eax, [ebp - 0xa3a]
push ebx
push eax
mov word [ebp - 0xa3c], bx
call fcn.10042010
add esp, 0xc
push 0x515
lea eax, [ebp - 0xa3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.regsvr32.exe
lea eax, [ebp - 0xa3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x100884b0
lea ecx, [ebp - 0xa40]
call fcn.10004658
cmp dword [ebp + 0xc], ebx
lea eax, [ebp - 0xa3c]
push esi
push eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xa40]
je 0x1000f86d
push str._s__s__s
jmp 0x1000f872
mov edi, 0x80070057
jmp 0x1000f895
push str._s__u__s__s
push eax
call fcn.100093b9
mov esi, dword [ebp - 0xa40]
add esp, 0x10
cmp dword [esi - 0xc], ebx
je 0x1000f88d
push esi
call fcn.1000f109
pop ecx
lea ecx, [esi - 0x10]
call fcn.1000285b
mov eax, edi
call fcn.10043aec
ret
Function at 0x1000fae9
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x38
mov eax, 0x1006bb0c
call fcn.10043a69
lea esi, [ebp + 8]
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
movsd dword es:[edi], dword [esi]
mov esi, 0x100884b0
lea ecx, [ebx + 0x10]
push esi
mov dword [ebp - 0x3c], ebx
call fcn.10004658
xor edi, edi
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.10004658
push 0x10
push edi
push ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call fcn.10042010
add esp, 0xc
push edi
lea ecx, [ebp - 0x2c]
call fcn.10004a50
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.1000315c
push eax
lea ecx, [ebp - 0x30]
call fcn.100031d0
push dword [ebp - 0x30]
mov byte [ebp - 4], 3
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
add esi, esi
lea eax, [esi + 0x10]
push eax
mov dword [ebp - 0x44], eax
call fcn.1003e542
mov ebx, eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.10042570
push esi
push dword [ebp - 0x30]
lea eax, [ebx + 0x10]
push eax
call fcn.10042570
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
add esp, 0x1c
push 0xf0000000
push 1
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x1000fbbe
push 8
push 1
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x1000fbbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x24]
push eax
push edi
push edi
push 0x8003
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1000fbdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push dword [ebp - 0x44]
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
call fcn.100421fa
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
pop ecx
push edi
lea eax, [ebp - 0x34]
push eax
push edi
push 2
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x34]
call fcn.10043e00
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push ebx
push 2
push dword [ebp - 0x24]
call esi
mov esi, dword [ebp - 0x3c]
push 0x10
push ebx
push esi
call fcn.10042570
push ebx
call fcn.10041f6c
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
push dword [ebp - 0x38]
lea ecx, [esi + 0x10]
call fcn.1000a7ef
push dword [ebp - 0x38]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x24], edi
je 0x1000fc61
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x28], edi
je 0x1000fc73
push edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x28], edi
push dword [ebp - 0x30]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x2c], edi
je 0x1000fc8d
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], edi
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.1000285b
mov eax, esi
call fcn.10043aec
ret 0x10
Function at 0x100107a0
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
add edi, edi
cmp dword [esi + 8], 0
jne 0x100107c5
test edi, edi
je 0x100107c5
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x10010812
push ebx
push edi
push 0
push 0
mov word [eax], 0
mov eax, dword [esi + 4]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x1001080e
lea ecx, [esi + 0xc]
call fcn.10010540
mov ecx, dword [esi + 8]
push edi
push ebx
push ecx
call fcn.10042570
add esp, 0xc
lea ecx, [esi + 0xc]
call fcn.10010590
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 8]
pop ebx
pop edi
pop esi
ret

Function at 0x10010d10
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
ret

Function at 0x10010d30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push 0x44
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.10042010
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x70]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10010e1d
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, edi
push 0x4ff
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x10]
push ecx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
jne 0x10010df0
push eax
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
call esi
test eax, eax
je 0x10010da0
jmp 0x10010dd0
lea eax, [ebp - 0x2c]
push eax
call edi
lea ecx, [ebp - 0x2c]
push ecx
call ebx
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
call esi
test eax, eax
jne 0x10010dd0
jmp 0x10010da0
test eax, eax
je 0x10010df9
cmp eax, 0xffffffff
jne 0x10010da0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0xc]
push ecx
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10011180
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100111e3
cmp dword [ebp - 4], 0
je 0x100111e3
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x100111e3
mov eax, dword [ebp - 4]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80040001
push 1
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov esp, ebp
pop ebp
ret
Function at 0x10011640
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, eax
mov ecx, dword [esi + 0x48]
lea eax, [ebp - 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10011665
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x48]
push ebx
push edi
mov edx, eax
xor edi, edi
and edx, 1
je 0x1001167d
mov dword [ebp - 8], 1
mov edi, dword [ebp - 8]
test al, 2
je 0x10011684
or edi, 2
test al, 4
je 0x1001168b
or edi, 4
mov ecx, eax
and ecx, 0x10
je 0x10011695
or edi, 0x10
test al, 0x20
je 0x1001169c
or edi, 0x20
test ecx, ecx
je 0x100116a8
or edi, 0x40000000
jmp 0x100116ae
or edi, 0x80000000
or edi, 0x1000000
test edx, edx
mov dword [ebp - 8], edi
jne 0x100116c4
or edi, 0x800000
mov dword [ebp - 8], edi
mov edx, dword [esi + 0x48]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esi + 0x3c], eax
jbe 0x10011793
cmp dword [esi + 0x10], 0
jne 0x10011793
mov eax, dword [esi + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push eax
call edi
mov eax, dword [esi + 0x48]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 2
lea edx, [ebp - 4]
push edx
push eax
call ebx
mov ecx, dword [esi + 0x48]
push 0
push 0
push 0x24
push ecx
call edi
mov ecx, dword [esi + 0x48]
push 0
lea edx, [ebp - 0xc]
push edx
push 4
lea eax, [ebp - 0x10]
push eax
push ecx
call ebx
cmp word [ebp - 4], 0x54ad
jne 0x10011784
mov eax, dword [ebp - 0x10]
lea edx, [eax + 0x34]
cmp dword [esi + 0x3c], edx
jbe 0x10011784
push 0
push 0
push eax
mov eax, dword [esi + 0x48]
push eax
call edi
mov eax, dword [esi + 0x48]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 4
lea edx, [ebp - 0x14]
push edx
push eax
call ebx
mov eax, dword [ebp - 0x14]
cmp eax, 0x5a4d
je 0x1001177d
cmp eax, 0x454e
je 0x1001177d
cmp eax, 0x454c
je 0x1001177d
cmp eax, 0x4550
jne 0x10011784
or dword [ebp - 8], 0x400000
mov ecx, dword [esi + 0x48]
push 0
push 0
push 0
push ecx
call edi
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp + 8]
push edx
push eax
mov dword [esi + 0x10], edi
call fcn.100115c0
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
push edi
push ebx
mov dword [esi], eax
call fcn.100115c0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
push ecx
push edx
mov dword [esi + 4], eax
call fcn.100115c0
mov dword [esi + 8], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push edi
push ebx
call fcn.10011580
movzx edx, word [ebp - 4]
movzx eax, word [ebp - 8]
add esp, 0x28
shl edx, 0x10
pop edi
or edx, eax
pop ebx
mov dword [esi + 0xc], edx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret