joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101e446
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.01061694
push 0
push 1
mov ecx, ebx
call fcn.0106262b
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0101dc46
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x101e496
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x101e4dc
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x101e4dc
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x101e072
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x101e500
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x101e4ee
call esi
mov esi, eax
jmp 0x101e504
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x101e504
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x101e9ba
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0
je 0x101e9d3
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
cmp byte [ebp + 0x10], al
push esi
sete al
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x101ea0b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x101e9fd
call esi
jmp 0x101ea0d
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x101ea0d
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x101ea17
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
je 0x101ea34
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 3
push ebx
push dword [ebp + 8]
call edi
test eax, eax
jne 0x101ea9a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp byte [ebp + 0x10], 0
je 0x101ea8a
cmp eax, 0xb7
jne 0x101ea8a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
cmp byte [ebp + 0x14], al
setne al
lea eax, [eax + eax + 2]
or eax, 1
push eax
push ebx
push dword [ebp + 8]
call edi
test eax, eax
jne 0x101ea9a
call esi
test eax, eax
jg 0x101ea86
call esi
jmp 0x101ea9c
call esi
jmp 0x101ea8e
test eax, eax
jle 0x101ea9c
and eax, 0xffff
or eax, 0x80070000
jmp 0x101ea9c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x101eaa8
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
je 0x101eac1
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x101eb16
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x101eb16
cmp eax, 3
je 0x101eb16
cmp byte [ebp + 0x10], 0
je 0x101eb10
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x101eb16
call esi
test eax, eax
jg 0x101eb02
call esi
jmp 0x101eb18
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x101eb18
test eax, eax
jle 0x101eb18
jmp 0x101eb04
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x101ed3f
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push esi
mov esi, ecx
je 0x101ed59
push 1
push esi
call fcn.01021e1d
test eax, eax
jl 0x101ed91
mov eax, dword [esi + 4]
test eax, eax
jne 0x101ed65
mov eax, 0x1001eb0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x101ed8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x101ed8f
test eax, eax
jle 0x101ed91
and eax, 0xffff
or eax, 0x80070000
jmp 0x101ed91
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x101f0e5
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x108c8d3
call fcn.01027038
push ecx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xb]
push eax
lea ecx, [esi + 0x34]
call fcn.0108148e
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
lea eax, [edi + 0x2c]
mov cx, word [eax]
neg cx
mov byte [ebp - 4], 1
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, esi
call fcn.0101f01d
mov eax, dword [edi]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 8]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x30], eax
mov byte [esi + 0x40], 1
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x101f4aa
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
mov esi, ecx
call fcn.0101f180
cmp eax, ebx
jge 0x101f4d8
cmp byte [ebp + 0xc], bl
je 0x101f4d1
cmp eax, 0x80070002
jne 0x101f5a3
xor eax, eax
jmp 0x101f5a3
cmp byte [ebp + 8], bl
je 0x101f4f5
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x101f4e9
mov eax, 0x1001eb0
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esi + 0x10], 0x10
push edi
je 0x101f58d
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x101f50c
mov eax, 0x1001eb0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x101f5a0
cmp byte [ebp + 0xc], bl
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x101f52a
call edi
jmp 0x101f52c
xor eax, eax
cmp byte [ebp + 8], bl
je 0x101f544
mov ecx, eax
sub ecx, 5
je 0x101f542
sub ecx, 0x1b
je 0x101f542
sub ecx, 0x71
jne 0x101f544
xor eax, eax
cmp eax, ebx
jne 0x101f57f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.0101f5ae
cmp eax, ebx
jl 0x101f5a2
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x101f565
mov eax, 0x1001eb0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x101f579
cmp byte [ebp + 0xc], bl
je 0x101f579
call edi
jmp 0x101f57b
xor eax, eax
cmp eax, ebx
je 0x101f5a0
jle 0x101f5a2
and eax, 0xffff
or eax, 0x80070000
jmp 0x101f5a2
push ebx
push dword [ebp + 8]
push esi
call fcn.0101ecfe
cmp eax, ebx
jge 0x101f5a0
cmp byte [ebp + 0xc], bl
jne 0x101f5a2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x101fd05
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_MakeSelfRelativeSD]
push edi
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x101fd43
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
je 0x101fd43
call ebx
jmp 0x101fdec
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
cmp ebx, edi
pop ecx
jne 0x101fd5b
push 8
pop eax
jmp 0x101fdec
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x14]
call esi
test eax, eax
je 0x101fdaf
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x101fd7d
mov eax, 0x53a
jmp 0x101fdec
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
xor eax, eax
cmp dword [ebp + 8], edi
push 0xf003f
push edi
setne al
push 0x1001eb0
push edi
push dword [ebp + 0xc]
lea eax, [eax + eax - 0x80000000]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x101fdbf
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x101fdec
push dword [ebp - 4]
push ebx
push 3
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp - 8], edi
pop ecx
je 0x101fdea
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x102001b
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call fcn.0101fad8
mov esi, eax
cmp esi, ebx
jne 0x102015a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x1020081
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x102015a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
test eax, eax
je 0x1020074
push 2
push 0xc
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x1020074
xor edi, edi
cmp dword [ebp - 0x28], ebx
jbe 0x10200ef
mov esi, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x1020074
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
cmp cl, bl
je 0x10200d0
cmp cl, 1
jne 0x10200dd
add eax, 8
push eax
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x10200e5
inc edi
cmp edi, dword [ebp - 0x28]
jb 0x10200b0
jmp 0x10200ef
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
mov esi, dword [ebp - 8]
push 1
push dword [ebp - 4]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1020074
push ebx
push dword [ebp - 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x1020074
push ebx
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
test eax, eax
je 0x1020074
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x1020140
mov esi, 0x80004005
jmp 0x102015a
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
call fcn.0101fd05
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
cmp dword [ebp - 4], ebx
mov edi, dword [sym.imp.msvcrt.dll_free]
je 0x102016e
push dword [ebp - 4]
call edi
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xc], ebx
je 0x1020179
push dword [ebp - 0xc]
call edi
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x1020184
push dword [ebp - 0x10]
call edi
pop ecx
cmp dword [ebp - 8], ebx
je 0x102018f
push dword [ebp - 8]
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x102019d
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10a1e18]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x40c]
push ecx
lea ecx, [ebp - 0x404]
push ecx
xor ebx, ebx
lea ecx, [ebp - 0x408]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
push ebx
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x40c], 0x200
mov dword [esi], ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x102026b
push dword [ebp - 0x408]
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, ebx
pop ecx
mov dword [esi], eax
jne 0x102021d
push 8
pop eax
jmp 0x102026b
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x40c]
push ecx
lea ecx, [ebp - 0x404]
push ecx
lea ecx, [ebp - 0x408]
push ecx
push eax
push dword [ebp - 0x414]
mov dword [ebp - 0x40c], 0x1fe
push ebx
call edi
test eax, eax
jne 0x1020269
mov eax, dword [esi]
cmp eax, ebx
je 0x1020261
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x102026b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101cfd1
leave
ret 8

Function at 0x102039b
Capabilities:
Add user account group

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 1
push 0
call sub.NETAPI32.dll_NetLocalGroupAdd
xor eax, eax
pop edi
leave
ret 8

Function at 0x10203d1
Capabilities:
Delete user account group

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0
call sub.NETAPI32.dll_NetLocalGroupDel
xor eax, eax
pop ebp
ret 4
Function at 0x10203eb
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x10a1e18]
push ebx
push edi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x310]
xor edi, edi
xor ebx, ebx
push eax
mov dword [ebp - 0x314], edi
inc ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1020430
mov dword [ebp - 0x314], 0x80004005
jmp 0x1020501
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
inc eax
inc eax
cmp eax, 0x104
pop ecx
ja 0x1020421
lea eax, [ebp - 0x310]
push 0x1002b0c
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push 2
push edi
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, edi
mov dword [ebp - 0x318], eax
je 0x1020421
call fcn.0101f7cb
test eax, eax
je 0x1020481
push 2
pop ebx
cmp ebx, edi
jbe 0x1020501
mov eax, edi
sub eax, 0
je 0x10204a5
dec eax
jne 0x10204c6
lea eax, [ebp - 0x104]
push 0x1002c18
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x10204c6
push 0x80
lea eax, [ebp - 0x104]
push eax
push 0x35e8
push dword [ebp - 0x318]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10204f2
lea eax, [ebp - 0x104]
push eax
call fcn.01020363
test eax, eax
je 0x10204fc
lea eax, [ebp - 0x104]
push eax
call fcn.010202fa
lea eax, [ebp - 0x104]
push eax
call fcn.010203d1
test eax, eax
jge 0x10204fc
mov dword [ebp - 0x314], 0x80004005
inc edi
cmp edi, ebx
jb 0x1020485
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x314]
pop edi
pop ebx
call fcn.0101cfd1
leave
ret
Function at 0x1020518
Capabilities:
Add user account to group
Delete user account from group
List user accounts for group
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10a1e18]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push eax
push 3
push edi
push esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call sub.NETAPI32.dll_NetLocalGroupGetMembers
test eax, eax
jne 0x1020636
push dword [ebp - 0x220]
push dword [ebp - 0x214]
push 3
push edi
push esi
call sub.NETAPI32.dll_NetLocalGroupDelMembers
test eax, eax
jne 0x1020636
lea eax, [ebp - 0x210]
push eax
push 0x20019
push esi
push 0x1002c58
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov dword [ebp - 0x21c], eax
jne 0x1020636
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
mov dword [ebp - 0x21c], eax
jne 0x1020636
push ebx
xor ebx, ebx
cmp dword [ebp - 0x218], esi
jbe 0x1020635
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
mov dword [ebp - 0x224], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x102062c
lea eax, [ebp - 0x20c]
push 1
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
push eax
push 3
push edi
push esi
call sub.NETAPI32.dll_NetLocalGroupAddMembers
inc ebx
cmp ebx, dword [ebp - 0x218]
jb 0x10205e1
pop ebx
cmp dword [ebp - 0x210], esi
je 0x1020650
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x210], esi
cmp dword [ebp - 0x214], esi
pop edi
pop esi
je 0x1020665
push dword [ebp - 0x214]
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
call fcn.0101cfd1
leave
ret 4
Function at 0x1020adb
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], ebx
mov dword [eax], ebx
jne 0x1020b0e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x1020b0e
xor esi, esi
inc esi
jmp 0x1020c5a
push edi
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call fcn.0101d0fa
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x1020c49
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
jmp 0x1020b3c
inc esi
inc esi
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x1020b3a
xor edi, edi
jmp 0x1020bfc
cmp di, 0x22
je 0x1020b8a
cmp di, 0x27
je 0x1020b8a
mov ebx, dword [ebp - 4]
jmp 0x1020b7d
push edi
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x1020b82
mov word [ebx], di
inc ebx
inc ebx
inc esi
inc esi
xor edi, edi
mov di, word [esi]
test di, di
jne 0x1020b65
and word [ebx], 0
xor ebx, ebx
jmp 0x1020bc7
mov edx, dword [ebp - 4]
inc esi
inc esi
jmp 0x1020bb8
cmp ax, di
je 0x1020bc2
cmp byte [ebp + 0x14], 0
je 0x1020baf
cmp ax, 0x5c
jne 0x1020baf
lea ecx, [esi + 2]
cmp word [ecx], bx
je 0x1020baf
mov esi, ecx
mov ax, word [esi]
mov word [edx], ax
inc edx
inc edx
inc esi
inc esi
xor eax, eax
mov ax, word [esi]
cmp ax, bx
jne 0x1020b91
jmp 0x1020bc4
inc esi
inc esi
mov word [edx], bx
mov edi, dword [ebp + 0xc]
cmp dword [edi], ebx
je 0x1020be4
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll__wcsdup]
cmp eax, ebx
pop ecx
je 0x1020c49
mov ecx, dword [edi]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], eax
inc dword [ebp - 8]
jmp 0x1020beb
inc esi
inc esi
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x1020be9
mov di, word [esi]
cmp di, bx
jne 0x1020b54
cmp dword [ebp - 0xc], ebx
jne 0x1020c38
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov dword [esi], eax
shl eax, 2
push eax
call fcn.0101d0fa
cmp eax, ebx
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x1020c49
xor eax, eax
cmp dword [esi], ebx
jle 0x1020c38
mov edx, dword [ecx]
mov dword [edx + eax*4], ebx
inc eax
cmp eax, dword [esi]
jl 0x1020c2e
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x1020b32
xor esi, esi
jmp 0x1020c59
push dword [ebp + 0xc]
mov esi, 0x8007000e
push dword [ebp + 8]
call fcn.0101f9ea
pop edi
push dword [ebp - 4]
call fcn.0101d0e9
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1020ecc
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10a1e18]
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1020eff
mov eax, 0x80004005
jmp 0x1020fec
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
inc eax
inc eax
cmp eax, 0x104
pop ecx
ja 0x1020ef5
push ebx
lea eax, [ebp - 0x410]
push 0x1002b0c
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push 2
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x1020f4c
mov eax, 0x80004005
jmp 0x1020feb
push esi
push edi
call fcn.0101f7cb
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
mov edi, 0x80
lea eax, [ebp - 0x104]
je 0x1020f78
push 0x1002c18
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x1020f86
push edi
push eax
push 0x35e8
push ebx
call esi
test eax, eax
je 0x1020fc1
push edi
lea eax, [ebp - 0x204]
push eax
push 0x35e9
push ebx
call esi
test eax, eax
je 0x1020fc1
lea eax, [ebp - 0x104]
push eax
call fcn.01020363
test eax, eax
jne 0x1020fc8
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0102039b
test eax, eax
jge 0x1020fc8
mov eax, 0x80004005
jmp 0x1020fe9
lea eax, [ebp - 0x104]
push eax
call fcn.01020518
lea eax, [ebp - 0x104]
push eax
call fcn.0102027f
neg eax
sbb eax, eax
and eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0101cfd1
leave
ret

Function at 0x10218eb
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10a1e18]
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x210]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x1021939
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
jne 0x1021957
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1021949
call esi
jmp 0x1021999
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1021999
push esi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1021994
lea eax, [esi + esi]
cmp word [ebp + eax - 0x210], 0x5c
jne 0x1021994
lea eax, [ebp + eax - 0x20e]
push eax
mov ecx, edi
call fcn.0101a536
xor eax, eax
jmp 0x1021999
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0101cfd1
leave
ret 8