joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101e3b6
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.0105c5ca
push 0
push 1
mov ecx, ebx
call fcn.0105b125
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.0101dbb6
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x101e406
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 0x101e44c
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x101e44c
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x101dfe2
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x101e470
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x101e45e
call esi
mov esi, eax
jmp 0x101e474
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x101e474
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 0x101e92a
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0
je 0x101e943
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 0x101e97b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x101e96d
call esi
jmp 0x101e97d
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x101e97d
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x101e987
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 0x101e9a4
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 0x101ea0a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp byte [ebp + 0x10], 0
je 0x101e9fa
cmp eax, 0xb7
jne 0x101e9fa
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 0x101ea0a
call esi
test eax, eax
jg 0x101e9f6
call esi
jmp 0x101ea0c
call esi
jmp 0x101e9fe
test eax, eax
jle 0x101ea0c
and eax, 0xffff
or eax, 0x80070000
jmp 0x101ea0c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x101ea18
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 0x101ea31
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 0x101ea86
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x101ea86
cmp eax, 3
je 0x101ea86
cmp byte [ebp + 0x10], 0
je 0x101ea80
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x101ea86
call esi
test eax, eax
jg 0x101ea72
call esi
jmp 0x101ea88
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x101ea88
test eax, eax
jle 0x101ea88
jmp 0x101ea74
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x101ecaf
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push esi
mov esi, ecx
je 0x101ecc9
push 1
push esi
call fcn.01021d2b
test eax, eax
jl 0x101ed01
mov eax, dword [esi + 4]
test eax, eax
jne 0x101ecd5
mov eax, 0x1001ea8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x101ecff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x101ecff
test eax, eax
jle 0x101ed01
and eax, 0xffff
or eax, 0x80070000
jmp 0x101ed01
xor eax, eax
pop esi
pop ebp
ret 4

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

Disassembly:
mov eax, 0x108c768
call fcn.01026ef8
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.01044c50
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.0101ef8d
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 0x101f41a
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.0101f0f0
cmp eax, ebx
jge 0x101f448
cmp byte [ebp + 0xc], bl
je 0x101f441
cmp eax, 0x80070002
jne 0x101f513
xor eax, eax
jmp 0x101f513
cmp byte [ebp + 8], bl
je 0x101f465
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x101f459
mov eax, 0x1001ea8
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esi + 0x10], 0x10
push edi
je 0x101f4fd
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x101f47c
mov eax, 0x1001ea8
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x101f510
cmp byte [ebp + 0xc], bl
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x101f49a
call edi
jmp 0x101f49c
xor eax, eax
cmp byte [ebp + 8], bl
je 0x101f4b4
mov ecx, eax
sub ecx, 5
je 0x101f4b2
sub ecx, 0x1b
je 0x101f4b2
sub ecx, 0x71
jne 0x101f4b4
xor eax, eax
cmp eax, ebx
jne 0x101f4ef
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.0101f51e
cmp eax, ebx
jl 0x101f512
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x101f4d5
mov eax, 0x1001ea8
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x101f4e9
cmp byte [ebp + 0xc], bl
je 0x101f4e9
call edi
jmp 0x101f4eb
xor eax, eax
cmp eax, ebx
je 0x101f510
jle 0x101f512
and eax, 0xffff
or eax, 0x80070000
jmp 0x101f512
push ebx
push dword [ebp + 8]
push esi
call fcn.0101ec6e
cmp eax, ebx
jge 0x101f510
cmp byte [ebp + 0xc], bl
jne 0x101f512
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x101fc47
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 0x101fc85
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
je 0x101fc85
call ebx
jmp 0x101fd2e
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
cmp ebx, edi
pop ecx
jne 0x101fc9d
push 8
pop eax
jmp 0x101fd2e
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x14]
call esi
test eax, eax
je 0x101fcf1
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x101fcbf
mov eax, 0x53a
jmp 0x101fd2e
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 0x1001ea8
push edi
push dword [ebp + 0xc]
lea eax, [eax + eax - 0x80000000]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x101fd01
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x101fd2e
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 0x101fd2c
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 0x101ff5d
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.0101fa0e
mov esi, eax
cmp esi, ebx
jne 0x102009c
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 0x101ffc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x102009c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
test eax, eax
je 0x101ffb6
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 0x101ffb6
xor edi, edi
cmp dword [ebp - 0x28], ebx
jbe 0x1020031
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 0x101ffb6
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
cmp cl, bl
je 0x1020012
cmp cl, 1
jne 0x102001f
add eax, 8
push eax
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x1020027
inc edi
cmp edi, dword [ebp - 0x28]
jb 0x101fff2
jmp 0x1020031
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 0x101ffb6
push ebx
push dword [ebp - 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x101ffb6
push ebx
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
test eax, eax
je 0x101ffb6
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x1020082
mov esi, 0x80004005
jmp 0x102009c
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
call fcn.0101fc47
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 0x10200b0
push dword [ebp - 4]
call edi
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xc], ebx
je 0x10200bb
push dword [ebp - 0xc]
call edi
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x10200c6
push dword [ebp - 0x10]
call edi
pop ecx
cmp dword [ebp - 8], ebx
je 0x10200d1
push dword [ebp - 8]
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10200df
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 0x10201ad
push dword [ebp - 0x408]
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, ebx
pop ecx
mov dword [esi], eax
jne 0x102015f
push 8
pop eax
jmp 0x10201ad
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 0x10201ab
mov eax, dword [esi]
cmp eax, ebx
je 0x10201a3
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10201ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101cf4f
leave
ret 8

Function at 0x10202dd
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 0x1020313
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 0x102032d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x10a1e18]
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1020360
mov eax, 0x80004005
jmp 0x10203ee
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
inc eax
inc eax
cmp eax, 0x104
pop ecx
ja 0x1020356
lea eax, [ebp - 0x310]
push 0x1002b04
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push 2
push 0
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x1020356
push 0x80
lea ecx, [ebp - 0x104]
push ecx
push 0x35e8
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1020356
lea eax, [ebp - 0x104]
push eax
call fcn.010202a5
test eax, eax
je 0x10203ec
lea eax, [ebp - 0x104]
push eax
call fcn.0102023c
lea eax, [ebp - 0x104]
push eax
call fcn.01020313
test eax, eax
jl 0x1020356
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0101cf4f
leave
ret
Function at 0x10203fd
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 0x102051b
push dword [ebp - 0x220]
push dword [ebp - 0x214]
push 3
push edi
push esi
call sub.NETAPI32.dll_NetLocalGroupDelMembers
test eax, eax
jne 0x102051b
lea eax, [ebp - 0x210]
push eax
push 0x20019
push esi
push 0x1002c10
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov dword [ebp - 0x21c], eax
jne 0x102051b
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 0x102051b
push ebx
xor ebx, ebx
cmp dword [ebp - 0x218], esi
jbe 0x102051a
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 0x1020511
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 0x10204c6
pop ebx
cmp dword [ebp - 0x210], esi
je 0x1020535
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 0x102054a
push dword [ebp - 0x214]
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
call fcn.0101cf4f
leave
ret 4
Function at 0x10209f9
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 0x1020a2c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x1020a2c
xor esi, esi
inc esi
jmp 0x1020b78
push edi
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call fcn.0101d067
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x1020b67
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
jmp 0x1020a5a
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 0x1020a58
xor edi, edi
jmp 0x1020b1a
cmp di, 0x22
je 0x1020aa8
cmp di, 0x27
je 0x1020aa8
mov ebx, dword [ebp - 4]
jmp 0x1020a9b
push edi
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x1020aa0
mov word [ebx], di
inc ebx
inc ebx
inc esi
inc esi
xor edi, edi
mov di, word [esi]
test di, di
jne 0x1020a83
and word [ebx], 0
xor ebx, ebx
jmp 0x1020ae5
mov edx, dword [ebp - 4]
inc esi
inc esi
jmp 0x1020ad6
cmp ax, di
je 0x1020ae0
cmp byte [ebp + 0x14], 0
je 0x1020acd
cmp ax, 0x5c
jne 0x1020acd
lea ecx, [esi + 2]
cmp word [ecx], bx
je 0x1020acd
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 0x1020aaf
jmp 0x1020ae2
inc esi
inc esi
mov word [edx], bx
mov edi, dword [ebp + 0xc]
cmp dword [edi], ebx
je 0x1020b02
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll__wcsdup]
cmp eax, ebx
pop ecx
je 0x1020b67
mov ecx, dword [edi]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], eax
inc dword [ebp - 8]
jmp 0x1020b09
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 0x1020b07
mov di, word [esi]
cmp di, bx
jne 0x1020a72
cmp dword [ebp - 0xc], ebx
jne 0x1020b56
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov dword [esi], eax
shl eax, 2
push eax
call fcn.0101d067
cmp eax, ebx
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x1020b67
xor eax, eax
cmp dword [esi], ebx
jle 0x1020b56
mov edx, dword [ecx]
mov dword [edx + eax*4], ebx
inc eax
cmp eax, dword [esi]
jl 0x1020b4c
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x1020a50
xor esi, esi
jmp 0x1020b77
push dword [ebp + 0xc]
mov esi, 0x8007000e
push dword [ebp + 8]
call fcn.0101f920
pop edi
push dword [ebp - 4]
call fcn.01073bda
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1020dea
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 0x1020e1d
mov eax, 0x80004005
jmp 0x1020efa
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
inc eax
inc eax
cmp eax, 0x104
pop ecx
ja 0x1020e13
push ebx
lea eax, [ebp - 0x410]
push 0x1002b04
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 0x1020e6a
mov eax, 0x80004005
jmp 0x1020ef9
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, 0x80
push edi
lea eax, [ebp - 0x104]
push eax
push 0x35e8
push ebx
call esi
test eax, eax
je 0x1020ee2
push edi
lea eax, [ebp - 0x204]
push eax
push 0x35e9
push ebx
call esi
test eax, eax
je 0x1020ee2
lea eax, [ebp - 0x104]
push eax
call fcn.010202a5
test eax, eax
jne 0x1020ee9
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.010202dd
test eax, eax
jl 0x1020ee2
lea eax, [ebp - 0x104]
push eax
call fcn.010203fd
lea eax, [ebp - 0x104]
push eax
call fcn.010201c1
test eax, eax
je 0x1020ef5
mov eax, 0x80004005
jmp 0x1020ef7
lea eax, [ebp - 0x104]
push eax
call fcn.010203fd
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0101cf4f
leave
ret

Function at 0x10217f9
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 0x1021847
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
jne 0x1021865
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1021857
call esi
jmp 0x10218a7
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x10218a7
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 0x10218a2
lea eax, [esi + esi]
cmp word [ebp + eax - 0x210], 0x5c
jne 0x10218a2
lea eax, [ebp + eax - 0x20e]
push eax
mov ecx, edi
call fcn.0101a4bd
xor eax, eax
jmp 0x10218a7
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0101cf4f
leave
ret 8
Function at 0x1021d2b
Capabilities:
Create directory

Disassembly:
mov eax, 0x108c813
call fcn.01026ef8
sub esp, 0x20
push esi
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], esi
je 0x1021d9b
mov ecx, dword [ebp + 8]
push 1
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 0x5c
call fcn.0101eb8f
cmp eax, 0xffffffff
je 0x1021e34
mov ecx, dword [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.0101ef4b
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0101a4e4
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0101930d
jmp 0x1021da9
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0101a4e4
mov eax, dword [ebp - 0x18]
cmp eax, esi
jne 0x1021db5
mov eax, 0x1001ea8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push esi
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
cmp esi, 1
je 0x1021e30
cmp eax, 0xb7
je 0x1021e30
cmp eax, 3
je 0x1021dec
test eax, eax
jle 0x1021e1a
and eax, 0xffff
or eax, 0x80070000
jmp 0x1021e1a
push 1
lea eax, [ebp - 0x1c]
push eax
call fcn.01021d2b
mov esi, eax
test esi, esi
jl 0x1021e32
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1021e09
mov eax, 0x1001ea8
push 0
push eax
call ebx
test eax, eax
jne 0x1021e30
call edi
test eax, eax
jg 0x1021e1e
call edi
mov esi, eax
jmp 0x1021e32
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1021e32
xor esi, esi
pop edi
pop ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.0101930d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8