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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x104d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [0x104d00c], 0x7d6
push edi
mov dword [ebp - 0x218], eax
jl 0x101ff55
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push 0x4400
sub esp, 0x10
mov edi, esp
mov esi, 0x1020030
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0101dea1
mov esi, eax
jmp 0x101ffc1
call fcn.0101dcbb
test eax, eax
je 0x101ffbc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], 0x104
call dword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryW]
test eax, eax
jne 0x101ff9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101ff94
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x101ffee
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x101ffb5
and word [eax], 0
jmp 0x101ffc1
mov esi, 0x80070057
jmp 0x101ffc1
mov esi, 0x80004001
test esi, esi
jl 0x101ffee
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [ebx], eax
jne 0x101ffea
mov esi, 0x8007000e
test esi, esi
jge 0x102001d
push 0
lea ecx, [ebp - 0x214]
call fcn.0101e28a
mov ecx, dword [ebp - 0x218]
push 0x7de
lea eax, [ebp - 0x214]
push eax
call fcn.0100f6ba
lea ecx, [ebp - 0x214]
call fcn.0100e0c2
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001666
leave
ret 8
Function at 0x1024860
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x102487b
push 0x80004005
call fcn.0101c65d
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x102487d
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x102688e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1042075
call fcn.01002f53
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x41c], eax
jne 0x10268e7
call fcn.0100f5ae
mov esi, eax
jmp 0x10269ec
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x1026900
call fcn.0100f5ae
jmp 0x10269de
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x428], eax
je 0x10268f6
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x420], edi
jae 0x1026966
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x102694c
lea ecx, [ebp - 0x418]
call fcn.01024edb
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0102306a
mov eax, esi
call fcn.01002f93
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.01025398
mov dword [ebp - 4], 1
jmp 0x1026992
cmp dword [ebp - 0x418], esi
jne 0x10269a1
mov esi, 0x8007000e
jmp 0x10269e0
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x10268f6
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.010262ea
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1026951
lea ecx, [ebp - 0x418]
call fcn.01024edb
jmp 0x1026951
Function at 0x1027257
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x104d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ecx
push 0x10039cc
push eax
mov dword [ebp - 0x28], eax
call fcn.0100b331
mov esi, eax
test esi, esi
jl 0x10272a4
mov eax, dword [ebp - 0x24]
mov ecx, dword [edi]
neg eax
sbb eax, eax
movzx eax, ax
push eax
push edi
call dword [ecx + 0x34]
mov esi, eax
test esi, esi
jge 0x10272b0
cmp esi, 0x80070002
jne 0x1027394
lea eax, [ebp - 0x24]
push eax
push 0x102746c
push dword [ebp - 0x28]
call fcn.0100b331
mov esi, eax
test esi, esi
jl 0x1027398
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
push ecx
push edi
call dword [eax + 0x38]
mov esi, eax
test esi, esi
jl 0x1027398
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x2c]
je 0x1027394
mov ecx, dword [edi]
push eax
push edi
call dword [ecx + 0x3c]
mov esi, eax
test esi, esi
jge 0x10273a0
cmp dword [ebp - 0x24], 0
jne 0x1027394
cmp word [ebx + 2], 0x3a
jne 0x1027394
cmp word [ebx + 4], 0x5c
jne 0x1027394
mov eax, dword [0x10189ec]
mov dword [ebp - 0xc], eax
mov eax, dword [0x10189f0]
mov dword [ebp - 8], eax
mov ax, word [ebx]
push 0xa
mov word [ebp - 0xc], ax
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x1027353
call fcn.0101dcda
cmp eax, ebx
jl 0x1027394
mov edx, 0x10189e0
lea eax, [ebp - 0x20]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x1027381
cmp cx, bx
je 0x102737d
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x1027381
add eax, 4
add edx, 4
cmp cx, bx
jne 0x102735b
xor eax, eax
jmp 0x1027386
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1027394
mov eax, dword [edi]
push 1
push edi
call dword [eax + 0x3c]
mov esi, eax
test esi, esi
jge 0x10273a0
cmp esi, 0x80070002
jne 0x10273c2
lea eax, [ebp - 0x24]
push eax
push 0x10039b8
push dword [ebp - 0x28]
call fcn.0100b331
mov esi, eax
test esi, esi
jl 0x10273c6
push dword [ebp - 0x24]
mov eax, dword [edi]
push edi
call dword [eax + 0x24]
mov esi, eax
test esi, esi
jge 0x10273ce
cmp esi, 0x80070002
jne 0x10273f0
lea eax, [ebp - 0x24]
push eax
push 0x1003994
push dword [ebp - 0x28]
call fcn.0100b331
mov esi, eax
test esi, esi
jl 0x10273f4
push dword [ebp - 0x24]
mov eax, dword [edi]
push edi
call dword [eax + 0x2c]
mov esi, eax
test esi, esi
jge 0x10273fc
cmp esi, 0x80070002
jne 0x1027426
lea eax, [ebp - 0x24]
push eax
push 0x102743c
push dword [ebp - 0x28]
call fcn.0100b331
mov esi, eax
test esi, esi
jl 0x1027426
mov eax, dword [ebp - 0x24]
mov ecx, dword [edi]
neg eax
sbb eax, eax
movzx eax, ax
push eax
push edi
call dword [ecx + 0x70]
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001666
leave
ret 0xc
Function at 0x102753e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x104241d
call fcn.01001615
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x220]
push ecx
push 0x1027824
push eax
mov dword [ebp - 0x224], eax
call fcn.0100b331
xor ebx, ebx
mov esi, eax
inc ebx
test esi, esi
jl 0x102758e
mov eax, dword [ebp - 0x220]
mov ecx, dword [edi]
neg eax
sbb eax, eax
movzx eax, ax
push eax
push edi
call dword [ecx + 0x34]
mov esi, eax
test esi, esi
jge 0x1027596
cmp esi, 0x80070002
jne 0x10275c9
lea eax, [ebp - 0x220]
push eax
push 0x10039f0
push dword [ebp - 0x224]
call fcn.0100b331
mov esi, eax
test esi, esi
jl 0x10275cd
mov eax, dword [ebp - 0x220]
mov ecx, dword [edi]
neg eax
sbb eax, eax
movzx eax, ax
push eax
push edi
call dword [ecx + 0x2c]
mov esi, eax
test esi, esi
jge 0x10275d9
cmp esi, 0x80070002
jne 0x1027669
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0x1027808
push 0
push dword [ebp - 0x224]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push eax
call fcn.0100b113
mov esi, eax
test esi, esi
jl 0x102766d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.01003bb9
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x21c]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, 0x8007000e
js 0x1027659
push dword [ebp - 0x21c]
mov eax, dword [edi]
push edi
call dword [eax + 0x48]
mov esi, eax
push dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jge 0x1027679
cmp esi, 0x80070002
jne 0x1027708
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0x10277d4
push 0
push dword [ebp - 0x224]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push eax
call fcn.0100b113
mov esi, eax
test esi, esi
jl 0x102770c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.01003bb9
mov esi, dword [ebp - 0x21c]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, 0x8007000e
mov dword [ebp - 4], ebx
js 0x10276f8
push dword [ebp - 0x21c]
mov eax, dword [edi]
push edi
call dword [eax + 0x58]
mov esi, eax
push dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jge 0x1027714
cmp esi, 0x80070002
jne 0x1027747
lea eax, [ebp - 0x220]
push eax
push 0x10277b0
push dword [ebp - 0x224]
call fcn.0100b331
mov esi, eax
test esi, esi
jl 0x102774b
mov eax, dword [ebp - 0x220]
mov ecx, dword [edi]
neg eax
sbb eax, eax
movzx eax, ax
push eax
push edi
call dword [ecx + 0x50]
mov esi, eax
test esi, esi
jge 0x1027753
cmp esi, 0x80070002
jne 0x1027786
lea eax, [ebp - 0x220]
push eax
push 0x1027790
push dword [ebp - 0x224]
call fcn.0100b331
mov esi, eax
test esi, esi
jl 0x1027786
mov eax, dword [ebp - 0x220]
mov ecx, dword [edi]
neg eax
sbb eax, eax
movzx eax, ax
push eax
push edi
call dword [ecx + 0x60]
mov esi, eax
mov eax, esi
call fcn.01001652
ret 8
Function at 0x1027845
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x104d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1027889
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1027881
cmp eax, 2
je 0x1027881
xor eax, eax
jmp 0x102790f
xor eax, eax
inc eax
jmp 0x102790f
test al, 0x10
push esi
je 0x1027909
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0100386f
test eax, eax
jl 0x102787a
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x224], ecx
mov word [ebp - 0x220], 0x14
mov dword [ebp - 0x21a], ecx
mov dword [ebp - 0x216], 0x1002ebc
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
jmp 0x102790f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01001666
leave
ret 4
Function at 0x1027f8f
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x21c
mov eax, 0x104266d
call fcn.01001615
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x224]
push ecx
push 0x20019
xor edi, edi
push edi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
call fcn.0100b113
mov esi, eax
cmp esi, edi
jl 0x10280b8
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push 0x10280dc
push edi
push dword [ebp - 0x224]
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push eax
call fcn.0100b113
mov esi, eax
cmp esi, edi
jl 0x10280ac
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
push edi
lea eax, [ebp - 0x218]
push eax
call esi
push 0x104d19c
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], eax
call fcn.01003395
push dword [ebp - 0x220]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], edi
call fcn.010034bd
push dword [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.0101c9ff
push 0x10280c4
lea ecx, [ebp - 0x21c]
call fcn.0101cbaf
call fcn.0102716a
mov esi, eax
cmp esi, edi
mov edi, dword [ebp - 0x21c]
jl 0x10280a4
push edi
push ebx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
push eax
call fcn.0100b113
mov esi, eax
lea ecx, [edi - 0x10]
call fcn.01002480
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.01001652
ret 8
Function at 0x102a83b
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x102a84e
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x102a84a
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x102a86f
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x102a8ae
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x102a8a4
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x102a8b0
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x102a894
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x102b2a0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x104d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x102b2d0
dec eax
push eax
mov ecx, esi
call fcn.0100afb0
mov eax, dword [esi + 4]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x102b2fc
mov eax, dword [esi]
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01001666
leave
ret 4
Function at 0x102d5e9
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x9c], 0
jne 0x102d606
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x102d63e
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
lea eax, [eax + eax + 2]
push eax
push 0
call fcn.0100b75c
push eax
push 1
push 0
push dword [ebp + 8]
push dword [esi + 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x102d633
push eax
jmp 0x102d5fc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
pop esi
pop ebp
ret 8

Function at 0x102d87d
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x14
mov eax, 0x1043609
call fcn.01001f29
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push ebx
call esi
cmp dword [edi + 0x9c], ebx
jne 0x102d8a6
push 6
call esi
xor eax, eax
jmp 0x102d91a
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp + 8]
push dword [edi + 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
jne 0x102d900
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
mov ecx, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
call fcn.0100b75c
or dword [ebp - 4], 0xffffffff
jmp 0x102d8af
cmp eax, ebx
je 0x102d90d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x102d8a2
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0100afb0
xor eax, eax
inc eax
call fcn.01001740
ret 8

Function at 0x102e0d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x104d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x10194d8
push 0x10
xor ebx, ebx
push eax
mov byte [ebp - 0x25], bl
call fcn.0101056d
add esp, 0x10
test eax, eax
jl 0x102e156
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push 8
lea eax, [ebp - 0x24]
push eax
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x14
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x102e156
cmp dword [ebp - 0x2c], 0x14
jne 0x102e156
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0102e0a7
mov byte [ebp - 0x25], al
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x25]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001666
leave
ret 4
Function at 0x102e16f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x104d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x10194d8
push 0x10
push eax
xor bl, bl
call fcn.0101056d
add esp, 0x10
test eax, eax
jl 0x102e1df
lea eax, [ebp - 0x28]
push eax
push 2
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102e1df
push 0x14
push esi
push 3
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x102e1d6
inc bl
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.01001666
leave
ret 4

Function at 0x102e1f7
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x104d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push dword [eax + 0x14]
lea eax, [ebp - 0x24]
push 0x10194d8
push 0x10
push eax
xor ebx, ebx
call fcn.0101056d
add esp, 0x10
test eax, eax
jl 0x102e25f
lea eax, [ebp - 0x28]
push eax
push 2
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102e25f
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x102e256
mov bl, 1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.01001666
leave
ret 4
Function at 0x102e276
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x104d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi], 2
jne 0x102e408
push edi
xor edi, edi
cmp dword [esi + 0x10], edi
jle 0x102e407
push dword [esi + 0x14]
lea ecx, [ebp - 0x16c]
call fcn.0102ddbb
push 0x10194e8
lea ecx, [ebp - 0x16c]
call fcn.0102e0d4
test al, al
je 0x102e2f4
mov eax, dword [ebp - 0x16c]
cmp eax, dword [esi]
jne 0x102e2f4
mov eax, dword [ebp - 0x168]
cmp eax, dword [esi + 4]
jne 0x102e2f4
mov eax, dword [ebp - 0x164]
cmp eax, dword [esi + 8]
jne 0x102e2f4
mov eax, dword [ebp - 0x15c]
cmp eax, dword [esi + 0x10]
je 0x102e407
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x102e418
push 0x10
push eax
call fcn.0101056d
add esp, 0x10
test eax, eax
jl 0x102e407
push dword [esi + 0x10]
lea eax, [ebp - 0x44]
push 0x1007550
push 0x10
push eax
call fcn.0101056d
add esp, 0x10
test eax, eax
jl 0x102e407
push edi
push 0x2710
push dword [esi + 8]
push dword [esi + 4]
call fcn.010121d3
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 0x148], edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x102e407
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x17c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x102e407
push 0x80
lea eax, [ebp - 0x144]
push eax
push edi
lea eax, [ebp - 0x164]
push eax
push edi
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
jle 0x102e407
lea eax, [ebp - 0x24]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14c], eax
push 0x100be5c
lea eax, [ebp - 0x144]
push edi
mov dword [ebp - 0x154], 0x1002ebc
mov dword [ebp - 0x148], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x102e407
push edi
lea eax, [ebp - 0x154]
push eax
push edi
push 4
push edi
push 0x800003f7
push 1
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01001666
leave
ret
Function at 0x102e57d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x146c
call fcn.0100afd6
mov eax, dword [0x104d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0102e49e
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x28]
push eax
push 3
xor ebx, ebx
push ebx
push 0x1019570
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
call esi
cmp eax, ebx
jne 0x102e6fb
lea eax, [ebp - 0x34]
push eax
push 3
push ebx
push 0x10194e8
push edi
call esi
cmp eax, ebx
jne 0x102e6fb
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x102e6fb
cmp dword [ebp - 0x2c], 0x400
ja 0x102e6fb
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
jbe 0x102e6bc
lea esi, [ebp - 0x1468]
push 0x14
pop edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x30]
mov byte [esi], bl
push dword [ebp - 0x28]
mov dword [ebp - 0x38], 0x10
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x102e6aa
cmp dword [ebp - 0x40], 3
jne 0x102e6aa
cmp dword [ebp - 0x3c], edi
jne 0x102e6aa
mov eax, dword [ebp - 0x38]
mov word [ebp + eax*2 - 0x24], bx
lea edi, [esi - 4]
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.0102e501
test al, al
je 0x102e6aa
push dword [edi]
lea ecx, [ebp - 0x6c]
call fcn.0102ddbb
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0102e0a7
lea ecx, [ebp - 0x6c]
call fcn.0102e423
cmp dword [ebp - 0x6c], ebx
jne 0x102e6aa
mov byte [esi], 1
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
add esi, 5
cmp eax, dword [ebp - 0x2c]
jb 0x102e61d
xor edi, edi
cmp dword [ebp - 0x2c], ebx
jbe 0x102e6fb
lea esi, [ebp - 0x146c]
cmp byte [esi + 4], bl
je 0x102e6f2
push dword [esi]
lea ecx, [ebp - 0x6c]
call fcn.0102ddbb
push 0x1019570
lea ecx, [ebp - 0x6c]
call fcn.0102e1f7
push 0x10194e8
lea ecx, [ebp - 0x6c]
call fcn.0102e1f7
inc edi
add esi, 5
cmp edi, dword [ebp - 0x2c]
jb 0x102e6c9
cmp dword [ebp - 0x28], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x102e70b
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 0x34], ebx
je 0x102e715
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001666
leave
ret