joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f760
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0xc]
call fcn.0101292a
push 0
mov ecx, esi
call fcn.0100f5b1
push 0
mov ecx, esi
call fcn.0100f273
mov ebx, 0x1002720
mov edi, 0x101d014
test eax, eax
jge 0x100f7b2
mov eax, dword [0x101d014]
cmp eax, edi
je 0x100f7b2
test byte [eax + 0x1c], 1
je 0x100f7b2
push ebx
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
lea ecx, [esi + 0xfc]
call fcn.01012949
push eax
lea eax, [ebp - 0xc]
push 0x1002848
push eax
call fcn.010136de
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x100f7f5
mov eax, dword [0x101d014]
cmp eax, edi
je 0x100f833
test byte [eax + 0x1c], 1
je 0x100f833
push esi
push ebx
push 0x43
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x100f833
lea ecx, [ebp - 0xc]
call fcn.01012949
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x100f831
mov eax, dword [0x101d014]
cmp eax, edi
je 0x100f82a
test byte [eax + 0x1c], 1
je 0x100f82a
push ebx
push 0x44
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov esi, 0x80004005
jmp 0x100f833
xor esi, esi
lea ecx, [ebp - 0xc]
call fcn.0101293c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x100f935
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [ebp - 0xc]
call fcn.0101292a
lea ecx, [esi + 0xfc]
call fcn.01012949
push eax
lea eax, [ebp - 0xc]
push 0x1002848
push eax
call fcn.010136de
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x100f992
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100f9dd
test byte [eax + 0x1c], 1
je 0x100f9dd
push esi
push 0x1002720
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x100f9dd
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0x10028fc
lea ecx, [ebp - 0xc]
call fcn.01012949
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x100f9db
push eax
call fcn.0100629e
mov esi, eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100f9dd
test byte [eax + 0x1c], 1
je 0x100f9dd
push esi
push 0x1002720
push 0x22
jmp 0x100f985
xor esi, esi
lea ecx, [ebp - 0xc]
call fcn.0101293c
mov eax, esi
pop esi
leave
ret 4
Function at 0x100f9f1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
call fcn.0101292a
lea ecx, [esi + 0xfc]
call fcn.01012949
push eax
lea eax, [ebp - 0x14]
push 0x1002848
push eax
call fcn.010136de
add esp, 0xc
test eax, eax
jge 0x100fa51
mov ecx, dword [0x101d014]
cmp ecx, 0x101d014
je 0x100fab2
test byte [ecx + 0x1c], 1
je 0x100fab2
push eax
push 0x1002720
push 0x23
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x100faad
push 4
pop esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x10
push 0x10028fc
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.01012949
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x100fa85
cmp dword [ebp - 4], esi
je 0x100fab2
mov esi, dword [0x101d014]
cmp esi, 0x101d014
je 0x100fab2
test byte [esi + 0x1c], 1
je 0x100fab2
push eax
call fcn.0100629e
push eax
push 0x1002720
push 0x24
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.0100dc70
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x14]
call fcn.0101293c
mov eax, esi
pop esi
leave
ret
Function at 0x10106f8
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x101d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x440], esi
call fcn.0101292a
lea ecx, [ebp - 0x43c]
call fcn.0101292a
xor ebx, ebx
push 0x424
lea eax, [ebp - 0x428]
push ebx
push eax
mov dword [ebp - 0x42c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x430], ebx
call fcn.010133e7
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x43c]
call fcn.01013561
cmp eax, ebx
jge 0x10107a5
mov ecx, dword [0x101d014]
cmp ecx, 0x101d014
je 0x1010941
test byte [ecx + 0x1c], 1
je 0x1010941
push eax
push 0x10029dc
push 0x21
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100dc70
jmp 0x1010941
push 0x1002a78
lea ecx, [ebp - 0x43c]
call fcn.01012e45
cmp eax, ebx
jge 0x10107df
mov ecx, dword [0x101d014]
cmp ecx, 0x101d014
je 0x1010941
test byte [ecx + 0x1c], 1
je 0x1010941
push eax
push 0x10029dc
push 0x22
jmp 0x1010795
lea ecx, [ebp - 0x43c]
call fcn.01012949
push eax
lea eax, [esi + 0x434]
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x1010941
call fcn.01013923
test eax, eax
je 0x1010941
push edi
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, ebx
jne 0x1010863
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x101091d
test byte [eax + 0x1c], 1
je 0x101091d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10029dc
push 0x23
mov eax, dword [0x101d014]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x101091d
lea eax, [ebp - 0x42c]
push eax
mov esi, 0x428
push edi
mov dword [ebp - 0x42c], esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x10108a9
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x101091d
test byte [eax + 0x1c], 1
je 0x101091d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10029dc
push 0x24
jmp 0x101084e
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x43c]
call fcn.01013561
push 0x1002a70
lea ecx, [ebp - 0x43c]
call fcn.0101364a
lea ecx, [ebp - 0x43c]
call fcn.01012949
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x1010913
push esi
lea eax, [ebp - 0x42c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
push edi
mov dword [ebp - 0x42c], esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10108cb
jmp 0x101091d
mov dword [ebp - 0x430], 1
cmp edi, ebx
je 0x1010928
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp dword [ebp - 0x430], ebx
je 0x1010941
mov eax, dword [ebp - 0x440]
mov dword [eax + 0x690], 5
lea ecx, [ebp - 0x43c]
call fcn.0101293c
lea ecx, [ebp - 0x44c]
call fcn.0101293c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x430]
pop esi
xor ecx, ebp
pop ebx
call fcn.010042af
leave
ret
Function at 0x1010c08
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x101d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x424]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
lea eax, [ebp - 0x468]
push 0
push eax
mov ebx, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1010c94
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1010c6c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1010de0
test byte [eax + 0x1c], 1
je 0x1010de0
push 0x10029dc
push 0x15
jmp 0x1010d5b
cmp eax, esi
jb 0x1010cc3
mov edi, 0x8007007a
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1010de0
test byte [eax + 0x1c], 1
je 0x1010de0
push 0x10029dc
push 0x16
jmp 0x1010d5b
lea eax, [ebp - 0x20c]
push eax
push 0x1002ae4
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0100937b
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x1010d08
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1010de0
test byte [eax + 0x1c], 1
je 0x1010de0
push 0x10029dc
push 0x17
jmp 0x1010d5b
lea eax, [ebx + 0x434]
push eax
add ebx, 0x22c
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x1002ac4
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100937b
mov edi, eax
xor esi, esi
add esp, 0x18
cmp edi, esi
jge 0x1010d68
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1010de0
test byte [eax + 0x1c], 1
je 0x1010de0
push 0x10029dc
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
jmp 0x1010de0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x468], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1010dde
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1010dc6
test byte [eax + 0x1c], 1
je 0x1010dc6
push 0x10029dc
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1010dda
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1010de0
xor edi, edi
cmp dword [ebp - 0x424], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1010df7
push dword [ebp - 0x424]
call esi
cmp dword [ebp - 0x420], 0
je 0x1010e08
push dword [ebp - 0x420]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010042af
leave
ret
Function at 0x1010e5f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x101d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
mov word [ebp - 0x41c], ax
xor esi, esi
lea eax, [ebp - 0x41a]
push esi
push eax
mov dword [ebp - 0x428], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x420], esi
cmp ebx, esi
je 0x1011010
cmp edi, esi
je 0x1011010
cmp dword [ebp + 0x10], esi
je 0x1011010
mov esi, 0x1002b30
push esi
xor eax, eax
push ebx
mov word [edi], ax
call fcn.01011c00
cmp eax, ebx
jne 0x1010f0c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1010edc
sub eax, edx
sar eax, 1
lea eax, [ebx + eax*2]
push eax
push 0x1002b28
push dword [ebp + 0x10]
push edi
call fcn.0100937b
add esp, 0x10
test eax, eax
jl 0x1011015
jmp 0x101100c
lea eax, [ebp - 0x41c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x101100c
mov esi, 0x1002b20
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x41c]
mov eax, ebx
mov dword [ebp - 0x424], edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1010f42
sub eax, edx
sar eax, 1
mov dword [ebp - 0x42c], eax
xor eax, eax
mov word [ebp - 0x214], ax
mov ax, word [edi]
mov word [ebp - 0xc], ax
push 0x103
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1010fe3
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1010f89
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, dword [ebp - 0x42c]
jae 0x1010fe3
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.01011c00
mov esi, eax
sub esi, ebx
neg esi
sbb esi, esi
inc esi
mov dword [ebp - 0x420], esi
je 0x1010fe9
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1002b14
push dword [ebp + 0x10]
push dword [ebp - 0x428]
call fcn.0100937b
add esp, 0x14
test eax, eax
jl 0x1011015
jmp 0x1010fe9
mov esi, dword [ebp - 0x420]
mov edi, dword [ebp - 0x424]
mov ax, word [edi]
inc edi
inc edi
test ax, ax
jne 0x1010fef
mov dword [ebp - 0x424], edi
test esi, esi
jne 0x101100c
cmp word [edi], si
jne 0x1010f5f
xor eax, eax
jmp 0x1011015
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010042af
leave
ret 0xc
Function at 0x1011d0e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0101471e
Function at 0x1011d7e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
cmp esi, edi
je 0x1011f92
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x1011f92
push ebx
cmp dword [ebp + 0x14], edi
je 0x1011e13
push edi
lea ecx, [ebp - 4]
push ecx
push edi
push 2
push edi
push edi
push edi
push dword [ebp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1011dd6
cmp dword [ebp - 4], edi
je 0x1011dd6
mov dword [ebp - 0xc], 1
jmp 0x1011e19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1011dea
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1011f04
test byte [eax + 0x1c], 1
je 0x1011f04
push ebx
push 0x1002be8
push 0x15
jmp 0x1011f57
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
mov dword [ebp + 0x14], edi
cmp dword [ebp + 0xc], edi
jbe 0x1011f02
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esi, 0x20c
lea eax, [esi + 0xc]
cmp dword [eax + 4], 0
je 0x1011eed
mov ecx, dword [esi - 0x20c]
dec ecx
je 0x1011e91
sub ecx, 3
jne 0x1011eed
push 4
push eax
push 4
push ecx
lea eax, [esi - 0x208]
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x1011eed
mov ebx, 0x80004005
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1011f04
test byte [eax + 0x1c], 1
je 0x1011f04
push 0x1002be8
push 0x16
jmp 0x1011f82
mov ecx, esi
call fcn.01012951
test eax, eax
je 0x1011eed
lea eax, [ebp - 8]
push eax
push 1
mov ecx, esi
call fcn.01012951
push eax
call fcn.01011d50
mov ebx, eax
test ebx, ebx
jl 0x1011f21
mov eax, dword [ebp - 8]
push 2
pop ecx
mul ecx
lea ecx, [ebp - 8]
push ecx
push edx
push eax
call fcn.01011d1e
mov ebx, eax
test ebx, ebx
jl 0x1011f3d
push dword [ebp - 8]
mov ecx, esi
call fcn.01012949
push eax
push 1
push 0
lea eax, [esi - 0x208]
push eax
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1011f64
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
add esi, 0x220
cmp eax, dword [ebp + 0xc]
jb 0x1011e31
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x1011f19
cmp dword [ebp - 0xc], 1
jne 0x1011f19
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
jmp 0x1011fbb
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1011f04
test byte [eax + 0x1c], 1
je 0x1011f04
push ebx
push 0x1002be8
push 0x17
jmp 0x1011f57
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1011f04
test byte [eax + 0x1c], 1
je 0x1011f04
push ebx
push 0x1002be8
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x1011f04
mov ebx, 0x80004005
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1011f04
test byte [eax + 0x1c], 1
je 0x1011f04
push 0x1002be8
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
jmp 0x1011f04
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1011fb6
test byte [eax + 0x1c], 1
je 0x1011fb6
push 0x1002be8
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov eax, 0x80070057
pop edi
pop esi
leave
ret 0x10
Function at 0x1013455
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x101d00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
push 0x40
lea eax, [ebp - 0x84]
mov esi, ecx
push eax
je 0x1013484
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x101348a
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10134b9
cmp eax, 0x40
ja 0x10134b9
lea eax, [ebp - 0x84]
push eax
mov ecx, esi
call fcn.01012cbe
test eax, eax
jl 0x10134c5
cmp dword [ebp + 0xc], 0
jne 0x10134c5
push 0x1001380
mov ecx, esi
call fcn.01012e45
jmp 0x10134c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100629e
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010042af
leave
ret 8

Function at 0x1013a36
Capabilities:
Get file attributes

Disassembly:
push 0xc
mov eax, 0x101a347
call fcn.0101250f
lea ecx, [ebp - 0x18]
call fcn.0101292a
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.01016864
test eax, eax
jge 0x1013a8c
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1013b06
test byte [eax + 0x1c], 1
je 0x1013b06
push 0x1002c38
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
jmp 0x1013b06
lea ecx, [ebp - 0x18]
call fcn.01012949
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1013adc
cmp eax, 0xffffffff
je 0x1013adc
push 0
push 0
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x18]
call fcn.01012949
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1013b06
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0101293c
xor eax, eax
inc eax
jmp 0x1013b14
mov ecx, dword [0x101d014]
cmp ecx, 0x101d014
je 0x1013b06
test byte [ecx + 0x1c], 1
je 0x1013b06
push eax
push dword [ebp + 8]
push 0x1002c38
push 0x5a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010049da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0101293c
xor eax, eax
call fcn.010125fb
ret 4

Function at 0x101464b
Capabilities:
Access pe header

Disassembly:
push 0x21c
push 0x101aae8
call fcn.0101272c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x22c], eax
xor edi, edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], edi
mov esi, 0x200
push esi
push edi
lea eax, [ebp - 0x21c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 4], edi
lea eax, [ebp - 0x228]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x22c]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10146eb
cmp dword [ebp - 0x228], esi
jne 0x10146eb
lea eax, [ebp - 0x224]
push eax
push edi
push esi
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeaderEx]
test eax, eax
jl 0x1014704
mov eax, dword [ebp - 0x224]
cmp eax, edi
je 0x1014704
mov eax, dword [eax + 8]
mov dword [ebp - 0x220], eax
jmp 0x1014704
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x1014711
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x220]
call fcn.01012774
ret 8
Function at 0x101486a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 8
mov dword [ebp + 0x18], ecx
cmp eax, esi
je 0x1014899
mov dword [eax], esi
cmp dword [ebp + 0xc], esi
jne 0x10148a3
cmp dword [ebp + 0x20], esi
je 0x10148bb
lea eax, [ebp + 0x18]
push eax
push 0x101
push esi
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10148d7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x40
push dword [ebp + 0x10]
push esi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, esi
je 0x10148df
push eax
call fcn.0100629e
jmp 0x10148e1
xor eax, eax
cmp eax, esi
jge 0x10148f8
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
cmp eax, esi
je 0x10148f8
mov dword [eax], 1
mov eax, dword [ebp + 0x18]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x101490e
cmp eax, dword [ebp + 8]
je 0x101490e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
leave
ret 0x1c

Function at 0x1015040
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
push edi
push dword [esi + 0xc]
xor ebx, ebx
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
cmp edi, ebx
jne 0x1015098
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100629e
mov ebx, eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x10150d5
test byte [eax + 0x1c], 1
je 0x10150d5
push ebx
push 0x1002c38
push 0x6e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x10150d5
push dword [esi + 0x18]
movzx eax, word [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0x1c]
push eax
push dword [esi + 0x20]
movzx eax, word [esi + 4]
push dword [esi]
push eax
movzx eax, word [esi + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x10150ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100629e
mov ebx, eax
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [esi + 0x28], 0
je 0x10150f2
push esi
call fcn.01013ff6
mov eax, dword [ebp + 8]
test eax, eax
je 0x10150f2
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x101571b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 4
mov dword [ebp + 0x14], eax
cmp edi, esi
je 0x1015743
mov dword [edi], esi
cmp dword [ebp + 0xc], esi
jne 0x101574d
cmp dword [ebp + 0x1c], esi
je 0x1015765
lea ecx, [ebp + 0x14]
push ecx
push 0x101
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1015781
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x10
push dword [ebp + 0x10]
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, esi
je 0x1015789
push eax
call fcn.0100629e
jmp 0x101578b
xor eax, eax
cmp eax, esi
jge 0x101579c
mov dword [ebp - 4], ebx
cmp edi, esi
je 0x101579c
mov dword [edi], 1
mov eax, dword [ebp + 0x14]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x10157b2
cmp eax, dword [ebp + 8]
je 0x10157b2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
leave
ret 0x18