joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10108ed
Capabilities:
Get file attributes

Disassembly:
push 0xc
mov eax, 0x1039c24
call fcn.010372df
lea ecx, [ebp - 0x18]
call fcn.01014810
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.0101635b
test eax, eax
jge 0x1010943
mov eax, dword [section..data]
cmp eax, section..data
je 0x10109bd
test byte [eax + 0x1c], 1
je 0x10109bd
push 0x1002f90
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x10109bd
lea ecx, [ebp - 0x18]
call fcn.01015d45
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1010993
cmp eax, 0xffffffff
je 0x1010993
push 0
push 0
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x18]
call fcn.01015d45
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10109bd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.01014822
xor eax, eax
inc eax
jmp 0x10109cb
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10109bd
test byte [ecx + 0x1c], 1
je 0x10109bd
push eax
push dword [ebp + 8]
push 0x1002f90
push 0x5a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01018c98
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.01014822
xor eax, eax
call fcn.010373cb
ret 4

Function at 0x10109d8
Capabilities:
Get file attributes

Disassembly:
push 0xc
mov eax, 0x1039c24
call fcn.010372df
lea ecx, [ebp - 0x18]
call fcn.01014810
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0101635b
cmp eax, esi
jge 0x1010a3b
mov eax, dword [section..data]
cmp eax, section..data
je 0x1010a25
test byte [eax + 0x1c], 1
je 0x1010a25
push 0x1002f90
push 0x5b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.01014822
xor eax, eax
call fcn.010373cb
ret 4
lea ecx, [ebp - 0x18]
call fcn.01015d45
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1010a7a
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1010a25
test byte [ecx + 0x1c], 4
je 0x1010a25
push eax
push dword [ebp + 8]
push 0x1002f90
push 0x5c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01018c98
jmp 0x1010a25
push esi
push 0x2000000
push 3
push esi
push 3
push esi
lea ecx, [ebp - 0x18]
call fcn.01015d45
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1010aaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.01014822
mov eax, esi
jmp 0x1010a33
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
jmp 0x1010a9a
Function at 0x101127e
Capabilities:
Access pe header

Disassembly:
push 0x21c
push 0x103a870
call fcn.0103761c
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 0x101131e
cmp dword [ebp - 0x228], esi
jne 0x101131e
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 0x1011337
mov eax, dword [ebp - 0x224]
cmp eax, edi
je 0x1011337
mov eax, dword [eax + 8]
mov dword [ebp - 0x220], eax
jmp 0x1011337
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x1011344
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x220]
call fcn.01037664
ret 8
Function at 0x10115f5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor eax, eax
push esi
push edi
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
xor eax, eax
lea edi, [ebp - 8]
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], esi
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov ebx, 0x80004005
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
jne 0x1011634
cmp edi, esi
je 0x1011639
cmp dword [ebp + 0x10], esi
jne 0x101166a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1011660
test byte [eax + 0x1c], 1
je 0x1011660
push 0x1002f90
push 0xf1
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, 0x80070057
jmp 0x1011735
cmp dword [ebp + 0xc], esi
je 0x10116ad
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20106
push esi
push esi
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
test eax, eax
je 0x10116b0
mov eax, dword [section..data]
cmp eax, section..data
je 0x1011720
test byte [eax + 0x1c], 1
je 0x1011720
push 0x1002f90
push 0xf2
jmp 0x1011711
mov dword [ebp - 4], edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push 8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0xb
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
cmp eax, esi
je 0x101171e
push eax
call fcn.0100968c
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1011720
test byte [eax + 0x1c], 1
je 0x1011720
push 0x1002f90
push 0xf3
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x1011720
xor ebx, ebx
cmp dword [ebp - 4], esi
je 0x1011733
cmp dword [ebp - 4], edi
je 0x1011733
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1011741
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 0x1011770
mov dword [eax], esi
cmp dword [ebp + 0xc], esi
jne 0x101177a
cmp dword [ebp + 0x20], esi
je 0x1011792
lea eax, [ebp + 0x18]
push eax
push 0x101
push esi
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10117ae
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.KERNEL32.dll_RegGetValueW]
cmp eax, esi
je 0x10117b6
push eax
call fcn.0100968c
jmp 0x10117b8
xor eax, eax
cmp eax, esi
jge 0x10117cf
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
cmp eax, esi
je 0x10117cf
mov dword [eax], 1
mov eax, dword [ebp + 0x18]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x10117e5
cmp eax, dword [ebp + 8]
je 0x10117e5
push eax
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
leave
ret 0x1c
Function at 0x1012077
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
cmp eax, ebx
je 0x1012108
lea ecx, [ebp - 0x1c]
push ecx
push 2
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x1012162
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10121f1
test byte [ecx + 0x1c], 1
je 0x10121f1
push eax
push 0x1002f90
push 0x4f
jmp 0x101214f
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x101215f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10121f1
test byte [ecx + 0x1c], 1
je 0x10121f1
push eax
push 0x1002f90
push 0x50
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01008600
jmp 0x10121f1
xor edi, edi
inc edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
call fcn.010379b5
test eax, eax
jne 0x10121cb
cmp dword [ebp - 0x28], ebx
jne 0x1012180
cmp dword [ebp - 0x20], ebx
je 0x10121c8
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x10121cb
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10121b7
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x24], ebx
je 0x10121cb
mov dword [ebp - 0x18], ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x10121df
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x14], ebx
je 0x10121f0
cmp edi, ebx
je 0x10121f0
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
pop esi
cmp dword [ebp - 0x10], ebx
pop edi
pop ebx
je 0x1012201
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
call fcn.010084d5
leave
ret 4
Function at 0x1012360
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 0x10123b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10123f5
test byte [eax + 0x1c], 1
je 0x10123f5
push ebx
push 0x1002f90
push 0x6e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x10123f5
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 0x10123ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov ebx, eax
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [esi + 0x28], 0
je 0x1012412
push esi
call fcn.01010c29
mov eax, dword [ebp + 8]
test eax, eax
je 0x1012412
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 0x1012d0e
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 0x1012d36
mov dword [edi], esi
cmp dword [ebp + 0xc], esi
jne 0x1012d40
cmp dword [ebp + 0x1c], esi
je 0x1012d58
lea ecx, [ebp + 0x14]
push ecx
push 0x101
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1012d74
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.KERNEL32.dll_RegGetValueW]
cmp eax, esi
je 0x1012d7c
push eax
call fcn.0100968c
jmp 0x1012d7e
xor eax, eax
cmp eax, esi
jge 0x1012d8f
mov dword [ebp - 4], ebx
cmp edi, esi
je 0x1012d8f
mov dword [edi], 1
mov eax, dword [ebp + 0x14]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x1012da5
cmp eax, dword [ebp + 8]
je 0x1012da5
push eax
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
leave
ret 0x18
Function at 0x1012db1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0x80004005
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x18], edi
jne 0x1012ddb
mov eax, 0x80070057
jmp 0x1012f88
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0xc], edi
jne 0x1012de7
cmp eax, edi
je 0x1012e47
neg eax
sbb eax, eax
lea edx, [ebp - 8]
push edx
and eax, 0x100
or eax, 1
push eax
push edi
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1012e47
push eax
call fcn.0100968c
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1012f72
test byte [eax + 0x1c], 1
je 0x1012f72
push dword [ebp - 4]
push 0x1002f90
push 0xba
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1012f72
push esi
mov esi, dword [sym.imp.KERNEL32.dll_RegGetValueW]
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 2
push dword [ebp + 0x10]
push edi
push dword [ebp - 8]
call esi
cmp eax, edi
je 0x1012e95
cmp dword [ebp + 0x14], edi
je 0x1012e87
cmp dword [ebp + 0x1c], edi
je 0x1012e7a
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0101635b
jmp 0x1012e8d
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
call fcn.01014c4a
jmp 0x1012e8d
push eax
call fcn.0100968c
mov dword [ebp - 4], eax
jmp 0x1012f71
mov eax, dword [ebp - 0xc]
push ebx
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x1012ee7
mov eax, dword [section..data]
cmp eax, section..data
je 0x1012f65
test byte [eax + 0x1c], 1
je 0x1012f65
push 0x1002f90
push 0xbb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x1012f65
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 2
push dword [ebp + 0x10]
push edi
push dword [ebp - 8]
call esi
cmp eax, edi
je 0x1012f26
push eax
call fcn.0100968c
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1012f65
test byte [eax + 0x1c], 1
je 0x1012f65
push dword [ebp - 4]
push 0x1002f90
push 0xbc
jmp 0x1012f55
mov ecx, dword [ebp + 0x18]
push ebx
call fcn.01014c4a
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x1012f62
mov eax, dword [section..data]
cmp eax, section..data
je 0x1012f65
test byte [eax + 0x1c], 1
je 0x1012f65
push dword [ebp - 4]
push 0x1002f90
push 0xbd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1012f65
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x1012f70
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop esi
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x1012f85
cmp eax, dword [ebp + 8]
je 0x1012f85
push eax
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
leave
ret 0x1c
Function at 0x10130be
Capabilities:
Enumerate processes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x234], 0xffffffff
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x101311c
mov esi, 0x80070057
mov eax, dword [section..data]
cmp eax, section..data
je 0x1013286
test byte [eax + 0x1c], 1
je 0x1013286
push 0x1002f90
push 0xc3
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x1013286
mov esi, 0x22c
push esi
lea eax, [ebp - 0x230]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
jne 0x101318a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1013286
test byte [eax + 0x1c], 1
je 0x1013286
push esi
push 0x1002f90
push 0xc4
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1013286
lea ecx, [ebp - 0x230]
push ecx
push eax
mov dword [ebp - 0x230], esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x10131e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101327d
test byte [eax + 0x1c], 1
je 0x101327d
push esi
push 0x1002f90
push 0xc5
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x101327d
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x228], ebx
je 0x101323c
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10131e8
push 0x490
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101327c
test byte [eax + 0x1c], 1
je 0x101327c
push ebx
push 0x1002f90
push 0xc6
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x101327c
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.01014c4a
mov esi, eax
test esi, esi
jge 0x101327a
mov eax, dword [section..data]
cmp eax, section..data
je 0x101327c
test byte [eax + 0x1c], 1
je 0x101327c
push esi
push 0x1002f90
push 0xc7
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x101327c
xor esi, esi
pop ebx
cmp dword [ebp - 0x234], 0
je 0x1013292
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010084d5
leave
ret 8
Function at 0x1015552
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x103e010]
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 0x1015581
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x1015587
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10155b6
cmp eax, 0x40
ja 0x10155b6
lea eax, [ebp - 0x84]
push eax
mov ecx, esi
call fcn.01014c4a
test eax, eax
jl 0x10155c2
cmp dword [ebp + 0xc], 0
jne 0x10155c2
push 0x1001648
mov ecx, esi
call fcn.01014dd1
jmp 0x10155c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010084d5
leave
ret 8

Function at 0x1015d56
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
cmp dword [esi + 4], edi
jne 0x1015d71
mov eax, 0xe0000000
jmp 0x1015de4
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push edi
or eax, 0x20006
push eax
push edi
push edi
push edi
lea ecx, [esi + 0x14]
call fcn.01015d45
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1015dc2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0xc]
call fcn.01015b16
push eax
push edi
lea ecx, [esi + 0x20]
call fcn.01015d45
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
test eax, eax
je 0x1015dd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov esi, eax
jmp 0x1015dd4
xor esi, esi
cmp dword [ebp - 4], edi
je 0x1015de2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret 0x10
Function at 0x1016136
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 8], ebx
call fcn.010160cb
mov dword [ebp - 4], ebx
or edi, 0xffffffff
cmp dword [esi], edi
jne 0x10161a4
push ebx
push 8
push 3
push ebx
push dword [ebp + 0xc]
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, edi
jne 0x10161a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x1016188
cmp eax, 0x21
je 0x1016188
cmp eax, 0x36
jne 0x101619c
inc dword [ebp - 4]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 5
jb 0x1016152
cmp dword [esi], edi
je 0x1016253
mov eax, dword [esi]
cmp eax, ebx
je 0x1016253
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x10161f1
mov eax, dword [section..data]
cmp eax, section..data
je 0x101627a
test byte [eax + 0x1c], 1
je 0x101627a
push 0x1003748
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x101627a
push ebx
push eax
push ebx
push 8
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x1016221
mov eax, dword [section..data]
cmp eax, section..data
je 0x101627a
test byte [eax + 0x1c], 1
je 0x101627a
push 0x1003748
push 0xc
jmp 0x10161e1
push ebx
push ebx
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x101624f
mov eax, dword [section..data]
cmp eax, section..data
je 0x101627a
test byte [eax + 0x1c], 1
je 0x101627a
push 0x1003748
push 0xd
jmp 0x10161e1
xor edi, edi
jmp 0x1016293
mov eax, dword [section..data]
cmp eax, section..data
je 0x101627a
test byte [eax + 0x1c], 1
je 0x101627a
push dword [ebp + 8]
push 0x1003748
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov edi, eax
cmp edi, ebx
jge 0x1016293
mov ecx, esi
call fcn.010160cb
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10162a1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10162b8
xor eax, eax
jmp 0x10162bb
and eax, 0x10
pop ebp
ret 4
Function at 0x101635b
Capabilities:
Query environment variable

Disassembly:
push 0xc
mov eax, 0x1039d0a
call fcn.01037317
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1016456
cmp dword [ebp + 0xc], ebx
je 0x1016456
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x14], eax
mul edx
seto cl
mov dword [ebp - 4], ebx
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
or dword [ebp - 4], 0xffffffff
pop ecx
mov esi, eax
jmp 0x10163b7
cmp esi, ebx
jne 0x10163e9
mov eax, dword [section..data]
cmp eax, section..data
je 0x10163e2
test byte [eax + 0x1c], 1
je 0x10163e2
push dword [ebp - 0x14]
push 0x1003758
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
mov edi, 0x8007000e
jmp 0x1016452
push dword [ebp - 0x14]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x101643a
mov eax, dword [section..data]
cmp eax, section..data
je 0x101642a
test byte [eax + 0x1c], 1
je 0x101642a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x1003758
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov edi, eax
jmp 0x1016447
mov ecx, dword [ebp + 0xc]
push esi
call fcn.01014b3d
xor esi, esi
xor edi, edi
cmp esi, ebx
je 0x1016452
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
jmp 0x101647f
mov eax, dword [section..data]
cmp eax, section..data
je 0x101647a
test byte [eax + 0x1c], 1
je 0x101647a
push 0x1003758
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, 0x80070057
call fcn.010373cb
ret 8