joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008e00
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x244], eax
mov eax, dword [esp + 0x24c]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x4c]
push ecx
xor ebx, ebx
push 0x104
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.kernel32.dll_GetTempPathW]
lea edx, [esp + 0x4c]
push ebx
push edx
call dword [sym.imp.MSVCR100.dll__wtempnam]
push 0x1b6
push 0x102
push eax
call dword [sym.imp.MSVCR100.dll_int___cdecl__wopen_wchar_t_const___int__int_]
push 1
mov esi, eax
call dword [sym.imp.MSVCR100.dll__dup]
push 1
push esi
mov dword [esp + 0x38], eax
call dword [sym.imp.MSVCR100.dll__dup2]
add esp, 0x20
push str.jvm.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ebp, dword [sym.imp.kernel32.dll_GetProcAddress]
mov edi, eax
push str._JVM_DumpAllStacks_8
push edi
call ebp
test eax, eax
jne 0x10008e9b
push str.JVM_DumpAllStacks
push edi
call ebp
test eax, eax
je 0x10008ea6
mov ebp, dword [esp + 0x10]
push 0
push ebp
call eax
jmp 0x10008eaa
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push 1
push eax
call dword [sym.imp.MSVCR100.dll__dup2]
push 0
push 0
push esi
call dword [sym.imp.MSVCR100.dll__lseek]
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.MSVCR100.dll__fstat64i32]
mov edi, dword [esp + 0x4c]
add esp, 0x1c
test edi, edi
jle 0x10008f08
lea edx, [edi + 1]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_calloc]
mov ebx, eax
push edi
push ebx
push esi
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x14
test ebx, ebx
je 0x10008f08
mov eax, dword [ebp]
mov ecx, dword [eax + 0x29c]
push ebx
push ebp
call ecx
mov edi, eax
jmp 0x10008f0c
mov edi, dword [esp + 0x14]
push ebx
call dword [sym.imp.MSVCR100.dll_free]
push esi
call dword [sym.imp.MSVCR100.dll__close]
mov ecx, dword [esp + 0x25c]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003779c
add esp, 0x248
ret 8

Function at 0x100096d0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x100096e4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x1000b160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x410
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x414]
push ebx
mov ebx, dword [esp + 0x420]
push esi
mov esi, dword [esp + 0x420]
push edi
push 2
push 0
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
call fcn.10030fd0
mov edi, eax
test edi, edi
jne 0x1000b1bc
call fcn.100095a0
mov esi, eax
jmp 0x1000b25a
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000b1d2
call fcn.100095a0
jmp 0x1000b251
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x1000b1e7
call fcn.100095a0
jmp 0x1000b251
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000b1ff
mov esi, 0x8007000e
jmp 0x1000b253
push eax
lea ecx, [esp + 0x18]
call fcn.1000a400
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1000b218
mov esi, 0x8007000e
jmp 0x1000b253
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000b231
call fcn.100095a0
jmp 0x1000b251
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [esp + 0x42c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.1000afd0
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea edx, [esp + 0x18]
cmp dword [esp + 0x14], edx
je 0x1000b270
lea ecx, [esp + 0x14]
call fcn.10009d00
lea ecx, [ecx]
mov ecx, dword [esp + 0x418]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.1003779c
add esp, 0x410
ret 0x10

Function at 0x1000c100
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x1000c15a
lea ecx, [esp + 4]
push ecx
push esi
call fcn.10002b30
add esp, 8
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1003779c
add esp, 0x20c
ret 8
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1003779c
add esp, 0x20c
ret 8
Function at 0x1000c180
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x20
mov eax, dword [0x1004f860]
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
jne 0x1000c1c3
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
je 0x1000c215
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1003779c
add esp, 0x20
ret 8
lea ecx, [esp + 4]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1000c1a5
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1000c1a5
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x1c]
test eax, eax
setns al
xor ecx, esp
call fcn.1003779c
add esp, 0x20
ret 8
Function at 0x1000c2f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x128]
push ebp
mov ebp, dword [esp + 0x128]
push esi
mov esi, dword [esp + 0x124]
test eax, eax
je 0x1000c499
push ebx
push edi
push eax
lea eax, [esp + 0x18]
push esi
push eax
call fcn.10002e60
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x10], 0x104
lea ebx, [esp + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x1000c354
mov eax, dword [eax]
jmp 0x1000c356
xor eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push ebp
call edi
cmp eax, 0xea
jne 0x1000c3b9
mov ecx, dword [esp + 0x10]
lea edx, [ecx - 1]
cmp edx, 0x3fffe
ja 0x1000c3b9
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x1c], 1
test eax, eax
je 0x1000c3a6
mov eax, dword [eax]
jmp 0x1000c3a8
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ebp
call edi
xor edi, edi
xor ebp, ebp
test eax, eax
jne 0x1000c445
mov eax, dword [esp + 0x18]
dec eax
je 0x1000c41a
sub eax, 3
je 0x1000c3fe
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c0]
push ecx
push esi
call edx
mov edi, eax
test edi, edi
je 0x1000c426
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 0x340]
push ebx
push ecx
push ebp
push edi
push esi
call edx
mov ebp, edi
jmp 0x1000c426
mov eax, dword [ebx]
mov ecx, dword [0x1004fc8c]
mov edx, dword [0x1004fc80]
push eax
push ecx
push edx
push esi
call fcn.10001b10
add esp, 0x10
jmp 0x1000c424
push ebx
push esi
call fcn.10002b30
add esp, 8
mov ebp, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [0x1004fc84]
mov edx, dword [0x1004fc88]
push ebp
push eax
push ecx
push edx
push esi
call fcn.10001b10
add esp, 0x14
mov edi, eax
cmp dword [esp + 0x1c], 0
je 0x1000c455
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1000c495
lea eax, [esi + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x1000c495
test esi, esi
je 0x1000c495
mov eax, dword [esi]
test eax, eax
je 0x1000c47c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x1000c48c
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop ebx
mov ecx, dword [esp + 0x11c]
pop esi
pop ebp
xor ecx, esp
call fcn.1003779c
add esp, 0x118
ret 0x10
Function at 0x1000c570
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x1000c616
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000c616
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push eax
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.10002e60
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test ecx, ecx
je 0x1000c5ba
mov eax, dword [ecx]
test eax, eax
je 0x1000c5ba
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x20]
jmp 0x1000c5bc
xor eax, eax
lea edi, [eax + eax]
test ecx, ecx
je 0x1000c5c7
mov esi, dword [ecx]
jmp 0x1000c5c9
xor esi, esi
push ebp
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.10002e60
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x1000c5e2
mov eax, dword [eax]
jmp 0x1000c5e4
xor eax, eax
mov edx, dword [esp + 0x1c]
push edi
push esi
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.10002330
lea ecx, [esp + 0x20]
call fcn.10002330
pop edi
test esi, esi
pop esi
pop ebx
sete al
pop ebp
ret 0x14
xor al, al
pop ebp
ret 0x14

Function at 0x1000c620
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000c6a5
push eax
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.10002e60
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x1000c645
mov eax, dword [eax]
jmp 0x1000c647
xor eax, eax
mov edx, dword [esp + 0xc]
push ebx
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, dword [esp + 0x18]
test eax, eax
sete bl
test esi, esi
je 0x1000c69a
lea eax, [esi + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x1000c69a
test esi, esi
je 0x1000c69a
mov eax, dword [esi]
test eax, eax
je 0x1000c681
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x1000c691
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
test bl, bl
pop ebx
je 0x1000c6a5
mov al, 1
ret 0x10
xor al, al
ret 0x10
Function at 0x1000c720
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10047980
push 0x10037882
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1004f860]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp + 0x10]
push edi
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov ebx, eax
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push esi
push 1
push esi
push str.JavaWebStart
lea eax, [ebp - 0x1c]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
test eax, eax
jne 0x1000c799
push 8
push 1
push eax
push str.JavaWebStart
lea ecx, [ebp - 0x1c]
push ecx
call esi
test eax, eax
je 0x1000c7c7
push ebx
push edi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1000c7c7
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
push esi
mov ecx, dword [eax + 0x2c0]
call ecx
mov dword [ebp - 0x20], eax
push ebx
push edi
push 0
push eax
mov ecx, esi
call fcn.10001db0
mov dword [ebp - 4], 0xfffffffe
call fcn.1000c7ed
mov eax, dword [ebp - 0x20]
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
Function at 0x1000d020
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10047a00
push 0x10037882
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1004f860]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 0x8004
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1000d092
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.1000cf60
add esp, 8
jmp 0x1000d151
mov edi, dword [ebp + 0x14]
push edi
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
push esi
push edi
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.1000c6f0
push ebx
push esi
push 2
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x1000d0d8
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
call fcn.1000cf60
add esp, 8
jmp 0x1000d151
mov dword [ebp + 0x18], ebx
lea edx, [ebp + 0x18]
push edx
push ebx
push ebx
push ebx
push 2
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
call ebx
test eax, eax
jne 0x1000d106
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
call fcn.1000cf60
add esp, 8
jmp 0x1000d14f
mov ecx, dword [ebp + 0x18]
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
lea edx, [ebp + 0x18]
push edx
push esi
push 0
push 0
push 2
mov eax, dword [ebp - 0x1c]
push eax
call ebx
test eax, eax
je 0x1000d0f4
mov ecx, dword [edi]
mov edx, dword [ebp + 0x18]
push edx
push edi
mov eax, dword [ecx + 0x2c0]
call eax
mov ebx, eax
push esi
mov ecx, dword [ebp + 0x18]
push ecx
push 0
push ebx
mov ecx, edi
call fcn.10001db0
mov dword [ebp - 0x28], ebx
xor ebx, ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.1000d176
mov eax, dword [ebp - 0x28]
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 0x1000d4d0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x1c
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push str.Shell_TrayWnd
push 0
push 0
call esi
test eax, eax
je 0x1000d50d
push 0
push str.TrayNotifyWnd
push 0
push eax
call esi
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 4]
pop esi
cmp eax, dword [esp + 8]
jl 0x1000d54d
cmp eax, dword [esp + 0x10]
jg 0x1000d54d
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0xc]
jl 0x1000d54d
cmp eax, dword [esp + 0x14]
jg 0x1000d54d
xor al, al
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1003779c
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x18]
xor ecx, esp
mov al, 1
call fcn.1003779c
add esp, 0x1c
ret 8

Function at 0x1000d750
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1840
call fcn.100378e0
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x183c], eax
push esi
push edi
push 0x1003bb30
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push 0x800
lea ecx, [esp + 0x848]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
lea edi, [esp + 0x1044]
lea eax, [esp + 0x844]
call fcn.1000d6f0
mov edx, edi
push edx
lea eax, [esp + 0x48]
push str._sjavacpl.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x38
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
call sub.MSVCR100.dll_memset
add esp, 0x18
lea eax, [esp + 8]
lea edx, [esp + 0x44]
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0x1003a9fc
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1000d817
push 0x10
push str.Unable_to_Start_Java_Plug_in_Control_Panel
lea ecx, [esp + 0x4c]
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x1844]
pop edi
pop esi
xor ecx, esp
call fcn.1003779c
add esp, 0x1840
ret 8
Function at 0x1000daf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
push eax
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.10002e60
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push esi
push eax
call fcn.10002e60
mov eax, dword [esp + 0x38]
mov edi, dword [sym.imp.kernel32.dll_InterlockedDecrement]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 0x18
xor bl, bl
test eax, eax
je 0x1000dbe5
xor ecx, ecx
cmp dword [eax], ecx
sete cl
test cl, cl
jne 0x1000dbe5
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x1000dc2b
cmp dword [ecx], 0
je 0x1000dbe9
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1000db96
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1000db7f
mov eax, dword [eax]
jmp 0x1000db81
xor eax, eax
lea ecx, [esp + 0x2c]
push ecx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1000dbe1
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], 4
test eax, eax
je 0x1000dbaa
mov eax, dword [eax]
jmp 0x1000dbac
xor eax, eax
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x2c]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000dbe1
cmp dword [esp + 0x14], esi
setne bl
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x1000dc2b
mov esi, ecx
add ecx, 8
push ecx
call edi
test eax, eax
jne 0x1000dc1f
test esi, esi
je 0x1000dc1f
mov eax, dword [esi]
test eax, eax
je 0x1000dc06
push eax
call ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x1000dc16
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], 0
test eax, eax
je 0x1000dc61
mov esi, eax
add eax, 8
push eax
call edi
test eax, eax
jne 0x1000dc61
test esi, esi
je 0x1000dc61
mov eax, dword [esi]
test eax, eax
je 0x1000dc48
push eax
call ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x1000dc58
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xc
ret 0x10
Function at 0x1000dc70
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.10002e60
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push esi
push eax
call fcn.10002e60
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.kernel32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 0x18
test eax, eax
je 0x1000dd4f
xor ecx, ecx
cmp dword [eax], ecx
sete cl
test cl, cl
jne 0x1000dd4f
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1000dd95
xor edx, edx
cmp dword [ecx], edx
sete dl
test dl, dl
jne 0x1000dd53
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1000dd12
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000dcfb
mov eax, dword [eax]
jmp 0x1000dcfd
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1000dd4b
movzx edx, byte [esp + 0x20]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], edx
test eax, eax
je 0x1000dd27
mov eax, dword [eax]
jmp 0x1000dd29
xor eax, eax
mov edx, dword [esp + 0x1c]
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1000dd95
mov esi, ecx
add ecx, 8
push ecx
call edi
test eax, eax
jne 0x1000dd89
test esi, esi
je 0x1000dd89
mov eax, dword [esi]
test eax, eax
je 0x1000dd70
push eax
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x1000dd80
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0
test eax, eax
je 0x1000ddcb
mov esi, eax
add eax, 8
push eax
call edi
test eax, eax
jne 0x1000ddcb
test esi, esi
je 0x1000ddcb
mov eax, dword [esi]
test eax, eax
je 0x1000ddb2
push eax
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x1000ddc2
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebx
ret 0x14