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

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1003ce70
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100530a0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x214]
xor eax, eax
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
js 0x10004765
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.100032a0
mov eax, dword [eax]
test eax, eax
je 0x1000469f
mov eax, dword [eax]
jmp 0x100046a1
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x10004705
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
mov dword [ebp - 0x1c], eax
jne 0x10004705
test esi, esi
je 0x10004705
mov eax, dword [esi]
test eax, eax
je 0x100046e3
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100046fa
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1002f9d0
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x1000473b
xor eax, eax
test edi, edi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1003b4ee
lea esp, [ebp + 0x20c]
pop ebp
ret
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.10005d80
add esp, 8
push 0
push edi
call fcn.1002f9d0
int3
Function at 0x10007420
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1024
call fcn.1003baf0
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x1020], eax
mov eax, dword [esp + 0x1030]
mov ecx, dword [esp + 0x1028]
push ebx
mov bl, byte [esp + 0x1038]
test eax, eax
je 0x100075cd
push esi
push edi
push eax
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.10003580
add esp, 0xc
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x18], 0
cmp bl, 1
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x14]
push 0x2001f
push dword [0x10053084]
sete al
add eax, 0x80000001
push eax
call fcn.10003a10
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10007574
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x100074d3
mov eax, dword [eax]
jmp 0x100074d5
xor eax, eax
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 0
push 0
push 0x2001f
push 0
push 0
push eax
push esi
call fcn.10006260
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x10007562
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x34]
xor ebp, ebp
push eax
push ebp
push ebp
push str.UninstallString
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x30]
push str.javaws.exe
push eax
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
mov ecx, 1
test eax, eax
cmovne ebp, ecx
test edi, edi
je 0x10007541
push edi
call ebx
xor edi, edi
test ebp, ebp
pop ebp
je 0x10007562
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10007552
mov eax, dword [eax]
jmp 0x10007554
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call fcn.10003b40
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1000756b
push esi
call ebx
xor esi, esi
test edi, edi
je 0x10007578
push edi
call ebx
jmp 0x10007578
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1000757f
push esi
call ebx
mov esi, dword [esp + 0xc]
test esi, esi
je 0x100075cb
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x100075cb
test esi, esi
je 0x100075cb
mov eax, dword [esi]
test eax, eax
je 0x100075a9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100075c0
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1002f9d0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x1024]
pop ebx
xor ecx, esp
call fcn.1003b4ee
add esp, 0x1024
ret 0x10
Function at 0x100075f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
call fcn.100306d0
test eax, eax
jne 0x10007677
mov dword [esp + 4], eax
call fcn.10005170
test eax, eax
je 0x1000766f
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10007677
lea eax, [esp + 8]
mov dword [esp + 8], 4
push eax
lea eax, [esp + 8]
mov dword [esp + 0x10], 4
push eax
lea eax, [esp + 0x14]
push eax
push 0
push str.EnableLUA
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esp + 4], 1
sete al
test eax, eax
jne 0x10007677
xor al, al
add esp, 0x10
ret 8
mov al, 1
add esp, 0x10
ret 8

Function at 0x100077b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
lea eax, [esp + 8]
or esi, 0xffffffff
push eax
push 0x20019
push 0
push dword [0x10053088]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000784e
lea eax, [esp + 4]
mov dword [esp + 4], 8
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 1
push eax
lea eax, [esp + 0x14]
push eax
push 0
push dword [0x1005308c]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007841
mov eax, dword [esp + 4]
cmp eax, 8
jae 0x1000782f
add eax, eax
cmp eax, 0x10
jae 0x10007862
xor ecx, ecx
mov word [esp + eax + 0x10], cx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov esi, eax
jmp 0x10007844
or esi, 0xffffffff
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003b4ee
add esp, 0x20
ret 8
call fcn.1002f9d0
int3
Function at 0x100079a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003cef0
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100530a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10007a80
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
mov ecx, dword [edi]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
mov eax, dword [ecx + 0x28c]
call eax
jmp 0x10007a62
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003b4ee
mov esp, ebp
pop ebp
ret 8
push esi
push str.Error:_08x_in_::SHGetFolderPath_NULL__CSIDL_COMMON_APPDATA__NULL__0__szPath_
call fcn.10005d80
add esp, 8
push 0
push esi
call fcn.1002f9d0
int3

Function at 0x10007ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003cf20
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100530a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10007bc0
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
mov ecx, dword [edi]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
mov eax, dword [ecx + 0x28c]
call eax
jmp 0x10007ba2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003b4ee
mov esp, ebp
pop ebp
ret 8
push esi
push str.Error:_08x_in_::SHGetFolderPath_NULL__CSIDL_APPDATA__NULL__0__szLocalPath_
call fcn.10005d80
add esp, 8
push 0
push esi
call fcn.1002f9d0
int3
Function at 0x10007d60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003cf80
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100530a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10007e40
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
mov ecx, dword [edi]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
mov eax, dword [ecx + 0x28c]
call eax
jmp 0x10007e22
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003b4ee
mov esp, ebp
pop ebp
ret 8
push esi
push str.Error:_08x_in_::SHGetFolderPath_NULL__CSIDL_LOCAL_APPDATA__NULL__0__szLocalPath_
call fcn.10005d80
add esp, 8
push 0
push esi
call fcn.1002f9d0
int3

Function at 0x10008a80
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x10053980], 0
je 0x10008aa4
mov eax, dword [0x10053984]
jmp 0x10008aef
push pe_nt_image_headers32
lea eax, [esp + 8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp], 0x114
lea eax, [esp]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExW]
cmp dword [esp + 0x10], 2
jne 0x10008ade
cmp dword [esp + 4], 6
jne 0x10008b0b
cmp dword [esp + 8], 2
jae 0x10008b0d
xor eax, eax
mov dword [0x10053984], eax
mov dword [0x10053980], 1
mov ecx, dword [esp + 0x114]
test eax, eax
setne al
xor ecx, esp
call fcn.1003b4ee
add esp, 0x118
ret 8
jbe 0x10008ade
mov eax, 1
jmp 0x10008ae0
Function at 0x1000aec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x410
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
mov ebp, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x420]
push edi
push 0x60
push 0
push esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call fcn.1002f9d0
mov edi, eax
test edi, edi
jne 0x1000af2c
push 2
push eax
push esi
call fcn.1002f9d0
mov edi, eax
test edi, edi
jne 0x1000af2c
call fcn.1000a5c0
mov esi, eax
jmp 0x1000afd3
push ebp
push ebx
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000af45
call fcn.1000a5c0
jmp 0x1000afc6
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x1000af5a
call fcn.1000a5c0
jmp 0x1000afc6
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000af72
mov esi, 0x8007000e
jmp 0x1000afc8
push eax
lea ecx, [esp + 0x1c]
call fcn.1000a3f0
cmp dword [esp + 0x18], 0
jne 0x1000af8a
mov esi, 0x8007000e
jmp 0x1000afc8
push esi
push dword [esp + 0x1c]
push esi
push ebx
push 0
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1000afa8
call fcn.1000a5c0
jmp 0x1000afc6
mov eax, dword [esp + 0x18]
xor edx, edx
push dword [esp + 0x430]
mov word [eax + ecx*2], dx
lea ecx, [esp + 0x14]
push dword [esp + 0x1c]
call fcn.1000ad30
mov esi, eax
test edi, edi
je 0x1000afd3
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x1000afe6
lea ecx, [esp + 0x18]
call fcn.1000a760
mov ecx, dword [esp + 0x41c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003b4ee
add esp, 0x410
ret 0x10
Function at 0x1000b670
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x1000b682
lea eax, [edx + 0xd]
pop esi
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000b690
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [esp + 0x1c]
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x1000c8b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x1000c90a
lea eax, [esp + 4]
push eax
push esi
call fcn.100036a0
add esp, 8
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1003b4ee
add esp, 0x20c
ret 8
mov ecx, dword [esp + 0x20c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.1003b4ee
add esp, 0x20c
ret 8

Function at 0x1000ca90
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000cb23
push eax
push dword [esp + 8]
lea eax, [esp + 0x18]
push eax
call fcn.10003580
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x1000cab8
mov eax, dword [eax]
jmp 0x1000caba
xor eax, eax
push ebx
push esi
push eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, dword [esp + 0x18]
test eax, eax
sete bl
test esi, esi
je 0x1000cb18
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x1000cb18
test esi, esi
je 0x1000cb18
mov eax, dword [esi]
test eax, eax
je 0x1000caf6
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000cb0d
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1002f9d0
add esp, 8
pop esi
test bl, bl
pop ebx
je 0x1000cb23
mov al, 1
ret 0x10
xor al, al
ret 0x10
Function at 0x1000cbe0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x128]
push ebx
mov ebx, dword [esp + 0x128]
push esi
mov esi, dword [esp + 0x124]
test eax, eax
je 0x1000cd90
push ebp
push edi
push eax
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.10003580
mov eax, dword [esp + 0x24]
lea edi, [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x10], 0x104
mov dword [esp + 0x1c], 0
test eax, eax
je 0x1000cc44
mov eax, dword [eax]
jmp 0x1000cc46
xor eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push ebx
call ebp
mov ecx, dword [esp + 0x10]
mov edx, eax
cmp edx, 0xea
jne 0x1000ccb1
lea eax, [ecx - 1]
cmp eax, 0x3fffe
ja 0x1000ccb1
push ecx
call fcn.1002f9d0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x1c], 1
mov edi, eax
test ecx, ecx
je 0x1000cc98
mov ecx, dword [ecx]
jmp 0x1000cc9a
xor ecx, ecx
lea eax, [esp + 0x10]
push eax
push edi
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push ebx
call ebp
mov ecx, dword [esp + 0x10]
mov edx, eax
xor ebp, ebp
xor ebx, ebx
test edx, edx
jne 0x1000cd30
mov eax, dword [esp + 0x14]
sub eax, 1
je 0x1000cd08
sub eax, 3
je 0x1000ccef
mov eax, dword [esi]
push ecx
push esi
mov eax, dword [eax + 0x2c0]
call eax
mov ebp, eax
test ebp, ebp
je 0x1000cd14
mov eax, dword [esi]
push edi
push dword [esp + 0x14]
mov eax, dword [eax + 0x340]
push ebx
push ebp
push esi
call eax
mov ebx, ebp
jmp 0x1000cd14
push dword [edi]
push dword [0x100539e4]
push dword [0x100539e8]
push esi
call fcn.10001d70
add esp, 0x10
jmp 0x1000cd12
push edi
push esi
call fcn.100036a0
add esp, 8
mov ebx, eax
push ebx
push dword [esp + 0x18]
push dword [0x100539e0]
push dword [0x100539dc]
push esi
call fcn.10001d70
add esp, 0x14
mov ebp, eax
cmp dword [esp + 0x1c], 0
je 0x1000cd40
push edi
call fcn.1003b898
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1000cd8c
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x1000cd8c
test esi, esi
je 0x1000cd8c
mov eax, dword [esi]
test eax, eax
je 0x1000cd6a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000cd81
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1002f9d0
add esp, 8
pop edi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x11c]
pop esi
pop ebx
xor ecx, esp
call fcn.1003b4ee
add esp, 0x118
ret 0x10
Function at 0x1000cdb0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x20
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000cdeb
lea eax, [esp + 4]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1000ce09
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
je 0x1000ce4f
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1003b4ee
add esp, 0x20
ret 8
mov eax, dword [esp + 4]
push 0
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1000ce4f
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x1000cdf6
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
js 0x1000cdf6
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.1003b4ee
add esp, 0x20
ret 8

Function at 0x1000ce70
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1000cfa2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000cfa2
push ebx
mov ebx, dword [esp + 0xc]
push edi
push eax
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.10003580
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x1000cebb
mov ecx, dword [eax]
test ecx, ecx
je 0x1000cebb
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, eax
mov eax, dword [esp + 0x20]
jmp 0x1000cebd
xor ecx, ecx
push ebp
lea ebp, [ecx + ecx]
test eax, eax
je 0x1000cec9
mov edi, dword [eax]
jmp 0x1000cecb
xor edi, edi
push esi
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.10003580
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x1000cee4
mov eax, dword [eax]
jmp 0x1000cee6
xor eax, eax
push ebp
push edi
push 1
push 0
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [esp + 0x20]
or edi, 0xffffffff
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebp, eax
test esi, esi
je 0x1000cf49
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x1000cf49
test esi, esi
je 0x1000cf49
mov eax, dword [esi]
test eax, eax
je 0x1000cf27
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000cf3e
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1002f9d0
add esp, 8
mov esi, dword [esp + 0x24]
test ebp, ebp
pop ebp
sete al
mov byte [esp + 0x1c], al
test esi, esi
je 0x1000cf9c
lock xadd dword [esi + 8], edi
dec edi
jne 0x1000cf9c
test esi, esi
je 0x1000cf9c
mov eax, dword [esi]
test eax, eax
je 0x1000cf76
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000cf8d
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1002f9d0
mov al, byte [esp + 0x24]
add esp, 8
pop edi
pop ebx
pop esi
ret 0x14
xor al, al
pop esi
ret 0x14
Function at 0x1000d1b0
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1004b598
push 0x1003b8cc
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100530a0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
xor edi, edi
mov dword [ebp - 0x20], edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push 0x8004
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1000d228
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push dword [ebp + 8]
call fcn.1000da90
add esp, 8
jmp 0x1000d2da
mov esi, dword [ebp + 0x14]
push esi
call fcn.1002f9d0
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
push edi
push esi
push 0
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.1000cff0
push 0
push edi
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x1000d270
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.1000da90
add esp, 8
xor esi, esi
jmp 0x1000d2da
mov dword [ebp + 0x18], 0
lea eax, [ebp + 0x18]
push eax
push 0
push 0
push 0
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
je 0x1000d25c
push dword [ebp + 0x18]
call fcn.1002f9d0
add esp, 4
mov ebx, eax
mov dword [ebp - 0x24], ebx
lea eax, [ebp + 0x18]
push eax
push ebx
push 0
push 0
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
je 0x1000d25c
mov eax, dword [esi]
push dword [ebp + 0x18]
push esi
mov eax, dword [eax + 0x2c0]
call eax
mov esi, eax
push ebx
push dword [ebp + 0x18]
push 0
push esi
mov ecx, dword [ebp + 8]
call fcn.10001fc0
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.1000d305
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1000d990
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1004b518
push 0x1003b8cc
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100530a0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov esi, dword [ebp + 0x10]
push esi
call fcn.1002f9d0
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push ebx
push 1
push ebx
push str.JavaWebStart
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1000da0f
push 8
push 1
push eax
push str.JavaWebStart
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1000da42
push edi
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1000da42
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push dword [ebp + 0x10]
push esi
mov eax, dword [eax + 0x2c0]
call eax
mov ebx, eax
mov dword [ebp - 0x20], ebx
push edi
push dword [ebp + 0x10]
push 0
push ebx
mov ecx, esi
call fcn.10001fc0
mov dword [ebp - 4], 0xfffffffe
call fcn.1000da6a
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc