joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011780
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1028
call fcn.100378e0
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x1024], eax
push ebx
push esi
mov esi, dword [esp + 0x1034]
xor ebx, ebx
push 0x20019
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.10003190
test eax, eax
je 0x1001180b
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x100117f2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.1003779c
add esp, 0x1028
ret
push ebp
mov ebp, dword [esp + 0x24]
push 0x2001f
push str.JavaSoft
push ebp
lea ecx, [esp + 0x18]
call fcn.10003190
test eax, eax
je 0x1001185a
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x10011839
push eax
call esi
cmp ebp, ebx
je 0x10011840
push ebp
call esi
pop ebp
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.1003779c
add esp, 0x1028
ret
push edi
push 0x2001f
lea ecx, [esp + 0x20]
cmp dword [esp + 0x1044], ebx
jne 0x100118a6
mov edi, dword [esp + 0x14]
push str.Java_Runtime_Environment
push edi
call fcn.10003190
test eax, eax
je 0x100118e3
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x10011891
push eax
call esi
cmp edi, ebx
je 0x10011898
push edi
call esi
cmp ebp, ebx
je 0x100118dc
push ebp
call esi
xor eax, eax
jmp 0x10011961
mov eax, dword [esp + 0x14]
push str.Java_Development_Kit
push eax
call fcn.10003190
test eax, eax
je 0x100118e3
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x100118ca
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x100118d5
push eax
call esi
cmp ebp, ebx
je 0x100118dc
push ebp
call esi
xor eax, eax
jmp 0x10011961
mov edi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x400
lea edx, [esp + 0x38]
push edx
push ebx
xor ecx, ecx
push edi
mov word [esi], cx
call ebp
test eax, eax
jne 0x10011939
lea eax, [esp + 0x34]
push esi
push eax
inc ebx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jle 0x10011927
lea ecx, [esp + 0x34]
push ecx
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
push 0x400
lea edx, [esp + 0x38]
push edx
push ebx
push edi
call ebp
test eax, eax
je 0x10011904
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x10011946
push edi
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10011951
push eax
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1001195c
push eax
call esi
mov eax, 1
mov ecx, dword [esp + 0x1034]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.1003779c
add esp, 0x1028
ret
Function at 0x100121a0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x620], eax
push esi
mov esi, dword [esp + 0x630]
push edi
mov edi, dword [esp + 0x630]
push esi
lea eax, [esp + 0x218]
push str._s..
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
test esi, esi
je 0x10012200
push 0
lea ecx, [esp + 0x420]
push ecx
push 0x105
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
test eax, eax
jne 0x10012219
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.1003779c
add esp, 0x624
ret
lea eax, [esp + 8]
push eax
push 0
push 0x1003da84
lea ecx, [esp + 0x428]
push ecx
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
je 0x10012200
push 0
lea edx, [esp + 0xc]
push edx
push edi
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
je 0x10012200
lea eax, [esp + 8]
push esi
push eax
call fcn.10011980
mov ecx, dword [esp + 0x630]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.1003779c
add esp, 0x624
ret
Function at 0x10012270
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
mov eax, 0x425c
call fcn.100378e0
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x4258], eax
mov eax, dword [esp + 0x4260]
push ebx
mov ebx, dword [esp + 0x4268]
push ebp
push esi
push edi
push eax
lea eax, [esp + 0x326c]
push str._s_bin_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.MSVCR100.dll_wcscat_s]
lea edx, [esp + 0x3274]
push edx
lea eax, [esp + 0x278]
xor ecx, ecx
push 0x800
push eax
mov word [esp + 0x280], cx
call esi
push ebx
lea edx, [esp + 0x1284]
xor ecx, ecx
push 0x800
push edx
mov word [esp + 0x128c], cx
call esi
add esp, 0x24
cmp dword [esp + 0x4278], 0
mov dword [esp + 0x10], 3
je 0x1001230c
mov dword [esp + 0x10], 1
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jle 0x1001245d
mov ebp, str.npoji.dll
jmp 0x10012330
lea ecx, [esp + 0x3268]
push ecx
lea edx, [esp + 0x226c]
xor eax, eax
push 0x800
push edx
mov word [esp + 0x2274], ax
call esi
push ebp
lea eax, [esp + 0x2278]
push 0x800
push eax
call esi
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x226c]
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10012440
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x26c]
push 0x800
push ecx
call esi
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x1278]
push 0x800
push eax
call esi
add esp, 0x18
push 0
lea ecx, [esp + 0x126c]
push ecx
lea edx, [esp + 0x270]
push edx
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
jne 0x100123ee
cmp dword [esp + 0x4278], eax
jne 0x1001247b
lea eax, [esp + 0x1268]
push eax
lea ecx, [esp + 0x26c]
push ecx
call fcn.100121a0
add esp, 8
lea eax, [esp + 0x3268]
push eax
lea ecx, [esp + 0x26c]
xor edx, edx
push 0x800
push ecx
mov word [esp + 0x274], dx
call esi
push ebx
lea eax, [esp + 0x1278]
xor edx, edx
push 0x800
push eax
mov word [esp + 0x1280], dx
call esi
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x10012382
push edi
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [esp + 0x14]
inc eax
add ebp, 0x1e
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jl 0x10012330
mov eax, 1
mov ecx, dword [esp + 0x4268]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003779c
add esp, 0x425c
ret
push edi
call dword [sym.imp.kernel32.dll_FindClose]
xor eax, eax
jmp 0x10012462
Function at 0x10014cc0
Capabilities:
Enumerate process modules
Get process image filename
Terminate process

Disassembly:
mov eax, 0x110c
call fcn.100378e0
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x1108], eax
lea eax, [esp]
push eax
push 0x1000
lea ecx, [esp + 0xc]
push ecx
call sub.psapi.dll_EnumProcesses
test eax, eax
je 0x10014d64
mov eax, dword [esp]
shr eax, 2
push edi
xor edi, edi
mov dword [esp + 4], eax
test eax, eax
je 0x10014d63
push ebx
mov ebx, dword [sym.imp.kernel32.dll_OpenProcess]
push ebp
mov ebp, dword [sym.imp.MSVCR100.dll_strstr]
push esi
nop
mov edx, dword [esp + edi*4 + 0x14]
push edx
push 0
push 0x1f0fff
call ebx
mov esi, eax
push 0x104
lea eax, [esp + 0x1018]
push eax
push esi
call sub.psapi.dll_GetProcessImageFileNameA
lea ecx, [esp + 0x1014]
push 0x1003dddc
push ecx
call ebp
add esp, 8
test eax, eax
je 0x10014d52
push 0
push esi
call dword [sym.imp.kernel32.dll_TerminateProcess]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
inc edi
cmp edi, dword [esp + 0x10]
jb 0x10014d10
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x1108]
xor ecx, esp
call fcn.1003779c
add esp, 0x110c
ret

Function at 0x10014ec0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x810
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
mov ebx, dword [esp + 0x81c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x824]
xor ebp, ebp
push 0x7fe
lea ecx, [esp + 0x22]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov word [esp + 0x28], ax
call sub.MSVCR100.dll_memset
mov eax, dword [edi]
add esp, 0xc
push 0x2001f
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.10003190
mov esi, dword [esp + 0x10]
cmp eax, ebp
jne 0x10014f57
push 0x400
lea edx, [esp + 0x20]
push edx
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x10014f61
test esi, esi
je 0x10014f4b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
push ebx
mov ecx, edi
call fcn.100030e0
test eax, eax
jmp 0x10014f5a
cmp eax, 2
jne 0x10014f61
mov ebp, 1
test esi, esi
je 0x10014f6c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.1003779c
add esp, 0x810
ret
Function at 0x10014f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x804
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call sub.MSVCR100.dll_memset
mov eax, dword [esp + 0x81c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
add esp, 0xc
push 0x400
lea edx, [esp + 0xc]
push edx
xor esi, esi
push esi
push eax
call edi
test eax, eax
jne 0x10015049
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_wcsncmp]
jmp 0x10014ff0
push 0xa
lea ecx, [esp + 0x10]
push str.JavaPlugin
push ecx
call ebx
add esp, 0xc
test eax, eax
jne 0x1001501a
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x818]
call fcn.10003d00
test eax, eax
je 0x1001501b
inc esi
push 0x800
lea eax, [esp + 0x10]
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x820]
add esp, 0xc
push 0x400
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
call edi
test eax, eax
je 0x10014ff0
pop ebx
mov eax, dword [esp + 0x810]
pop edi
pop esi
test eax, eax
je 0x1001505d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.1003779c
add esp, 0x804
ret

Function at 0x10015300
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1004
call fcn.100378e0
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push edi
xor eax, eax
push 0xffe
push eax
lea ecx, [esp + 0x12]
push ecx
xor edi, edi
mov word [esp + 0x14], ax
call sub.MSVCR100.dll_memset
mov eax, dword [esp + 0x101c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
add esp, 0xc
push 0x800
lea edx, [esp + 0xc]
push edx
push edi
push eax
call ebx
test eax, eax
jne 0x10015402
push ebp
mov ebp, dword [sym.imp.MSVCR100.dll_wcsstr]
push esi
mov esi, dword [sym.imp.MSVCR100.dll__wcsicmp]
jmp 0x10015370
lea ecx, [esp + 0x10]
push str.CAFEEFAC_
push ecx
call ebp
add esp, 8
test eax, eax
je 0x100153a9
lea edx, [esp + 0x10]
push str.CAFEEFAC_DEC7_0000_0001_ABCDEFFEDCBA
push edx
call esi
add esp, 8
test eax, eax
je 0x100153a9
lea eax, [esp + 0x10]
push str.CAFEEFAC_DEC7_0000_0000_ABCDEFFEDCBA
push eax
call esi
add esp, 8
test eax, eax
jne 0x100153d2
lea ecx, [esp + 0x10]
push str.E19F9331_3110_11D4_991C_005004D3B3DB
push ecx
call esi
add esp, 8
test eax, eax
je 0x100153d2
lea edx, [esp + 0x10]
push str.8AD9C840_044E_11D1_B3E9_00805F499D93
push edx
call esi
add esp, 8
test eax, eax
je 0x100153d2
inc edi
jmp 0x100153e3
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x101c]
call fcn.10003d00
mov edx, dword [esp + 0x1018]
push 0x800
lea ecx, [esp + 0x14]
push ecx
push edi
push edx
call ebx
test eax, eax
je 0x10015370
pop esi
pop ebp
mov eax, dword [esp + 0x1010]
pop edi
pop ebx
test eax, eax
je 0x10015416
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.1003779c
add esp, 0x1004
ret
Function at 0x100155a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1014
call fcn.100378e0
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x1010], eax
xor eax, eax
push 0xffe
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x20019
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0x800
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.10003190
test eax, eax
je 0x10015634
mov eax, dword [esp + 4]
test eax, eax
je 0x1001561d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.1003779c
add esp, 0x1014
ret
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
xor esi, esi
lea edx, [esp + 0x10]
push edx
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
push ebx
call ebp
test eax, eax
jne 0x100156c4
lea ecx, [ecx]
inc esi
mov ecx, str.1.6.0_10
lea eax, [esp + 0x1c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10015696
test dx, dx
je 0x10015692
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10015696
add eax, 4
add ecx, 4
test dx, dx
jne 0x10015670
xor eax, eax
jmp 0x1001569b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jns 0x100156e9
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
push ebx
mov dword [esp + 0x2c], 0x800
call ebp
test eax, eax
je 0x10015660
test ebx, ebx
je 0x100156cf
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.1003779c
add esp, 0x1014
ret
test ebx, ebx
je 0x100156f4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x101c]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1003779c
add esp, 0x1014
ret

Function at 0x10015720
Capabilities:
Delete registry value

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push esi
push 2
push eax
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.10003190
mov esi, eax
test esi, esi
je 0x1001576d
mov eax, dword [esp + 4]
test eax, eax
je 0x10015766
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 4]
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test esi, esi
je 0x1001578b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x100157a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push 0
push eax
push 0
push 0
push ecx
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.10005c00
test eax, eax
jne 0x10015819
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push esi
mov esi, dword [esp + 8]
push edi
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push edx
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x10015811
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x10015828
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x10
ret

Function at 0x10015830
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push esi
push 0x2001f
push eax
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.10003190
mov esi, eax
test esi, esi
je 0x10015880
mov eax, dword [esp + 4]
test eax, eax
je 0x100158bf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 8]
test esi, esi
jne 0x10015894
mov esi, 0xd
jmp 0x100158b3
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x20]
push edx
push esi
push 1
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x100158be
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x10015950
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10015a27
cmp eax, 0x104
ja 0x10015a27
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x216]
push ecx
mov word [esp + 0x218], ax
call sub.MSVCR100.dll_memset
push esi
lea edx, [esp + 0x14]
push edx
push str._s_s
push 0xffffffffffffffff
lea eax, [esp + 0x228]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf_s]
add esp, 0x24
test eax, eax
jg 0x100159ef
push str.LoadSystemLibrary:__snprintf_failed.
jmp 0x10015a2c
lea ecx, [esp + 0x20c]
push ecx
call fcn.10030fd0
mov esi, eax
test esi, esi
jne 0x10015a0f
push str.LoadSystemLibrary:_LoadLibrary___failed.
call fcn.10004ff0
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.1003779c
add esp, 0x414
ret
push str.LoadSystemLibrary:_GetSystemDirectory_failed.
call fcn.10004ff0
mov ecx, dword [esp + 0x418]
add esp, 4
pop esi
xor ecx, esp
xor eax, eax
call fcn.1003779c
add esp, 0x414
ret
Function at 0x10015a50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x9c
mov dword [esp], 0xffffffff
test edi, edi
jne 0x10015a6b
or eax, 0xffffffff
add esp, 0x9c
ret
push ebx
push ebp
push esi
call fcn.10005470
mov ebx, eax
mov ecx, 0x10
lea eax, [esp + 0x10]
mov edi, edi
mov byte [eax], 0
inc eax
dec ecx
jne 0x10015a80
xor ebp, ebp
call fcn.100034e0
test eax, eax
je 0x10015b75
push str.RunAsDesktopUser___OnVistaOrLater__use_CreateProcessWithTokenW
call fcn.10004ff0
add esp, 4
mov ecx, str.AdvAPI32.dll
call fcn.10015950
mov ebp, eax
test ebp, ebp
jne 0x10015ac5
push str.RunAsDesktopUser___CreateProcessWithTokenW_could_not_load_advapi32.dll
call fcn.10004ff0
add esp, 4
jmp 0x10015c05
push str.CreateProcessWithTokenW
push ebp
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x10015ae9
push str.RunAsDesktopUser___CreateProcessWithTokenW_could_not_GetProcAddress
call fcn.10004ff0
add esp, 4
jmp 0x10015c05
push str.RunAsDesktopUser___calling__CreateProcessWithTokenW
call fcn.10004ff0
add esp, 4
mov ecx, 0x44
lea eax, [esp + 0x64]
nop
mov byte [eax], 0
inc eax
dec ecx
jne 0x10015b00
mov edx, dword [esp + 0xac]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x68]
push ecx
push 0
push 0
push 0
push edx
push edi
push 0
push ebx
mov dword [esp + 0x88], 0x44
call esi
test eax, eax
jne 0x10015b46
push str.RunAsDesktopUser:_CreateProcessWithTokenW_failed.
call fcn.10004ff0
add esp, 4
jmp 0x10015c05
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10015c05
push 0xffffffffffffffff
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x10]
push edx
jmp 0x10015bff
push str.RunAsDesktopUser___OnWinXP__use_CreateProcessAsUser
call fcn.10004ff0
push 0x44
lea eax, [esp + 0x28]
push 0
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [esp + 0xbc]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0x30
push 0
push 0
push 0
push eax
push edi
push ebx
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x54], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x10015bd9
push str.RunAsDesktopUser:_CreateProcessAsUser_failed.
call fcn.10004ff0
add esp, 4
jmp 0x10015c05
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10015c05
push 0xffffffffffffffff
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebp
call dword [sym.imp.kernel32.dll_FreeLibrary]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
Function at 0x10019ae0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
push edi
push 0
push 0
push eax
push 0
push 0
push esi
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.10005c00
test eax, eax
jne 0x10019b64
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
test esi, esi
jne 0x10019b32
lea esi, [eax + 0xd]
jmp 0x10019b51
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x28]
push edx
push esi
push 1
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x10019b5c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x14
ret
push ebp
push str.CreateKeyNameValuePair:_cannot_create:
lea ecx, [esp + 0x14]
call fcn.10002e00
push esi
lea ecx, [esp + 0x10]
call fcn.10002e00
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.10004760
mov esi, dword [esp + 0xc]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [sym.imp.kernel32.dll_InterlockedDecrement]
test esi, esi
je 0x10019bcb
lea edx, [esi + 8]
push edx
call edi
test eax, eax
jne 0x10019bcb
mov eax, dword [esi]
test eax, eax
je 0x10019bb2
push eax
call ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x10019bc2
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 esi, dword [esp + 0x10]
test esi, esi
je 0x10019bd7
mov eax, dword [esi]
jmp 0x10019bd9
xor eax, eax
push eax
call fcn.10004ff0
add esp, 4
test esi, esi
je 0x10019c12
lea eax, [esi + 8]
push eax
call edi
test eax, eax
jne 0x10019c12
mov eax, dword [esi]
test eax, eax
je 0x10019bf9
push eax
call ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x10019c09
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 + 0x14]
pop ebp
test eax, eax
je 0x10019c22
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret