joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001845
Capabilities:
Enumerate files on windows

Disassembly:
push 0x6bc
mov eax, 0x1005286f
call fcn.1003a5fc
and dword [ebp - 0x678], 0
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x6a0]
mov dword [ebp - 0x67c], edi
mov dword [ebp - 0x680], esi
call fcn.10004ff4
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
test esi, esi
jne 0x100018aa
lea eax, [ebp - 0x6a0]
push eax
mov ecx, edi
call fcn.1000500d
lea ecx, [ebp - 0x6a0]
mov dword [ebp - 0x678], ebx
mov byte [ebp - 4], 0
call fcn.10005063
mov eax, edi
jmp 0x100019d9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..________.dirty
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x674], eax
cmp eax, 0xffffffff
je 0x100019ac
push 0x1005c044
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10001985
push 0x1005c048
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10001985
cmp dword [ebp - 0x670], 0xffffffff
je 0x10001985
push dword [ebp - 0x680]
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x6bc]
call fcn.10004b35
lea eax, [ebp - 0x6bc]
push eax
lea eax, [ebp - 0x6c8]
push eax
lea ecx, [ebp - 0x6a0]
mov byte [ebp - 4], 2
call fcn.1000508b
push 0
push ebx
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], bl
call fcn.10005a9d
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100018f1
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x67c]
lea eax, [ebp - 0x6a0]
push eax
call fcn.1000500d
lea ecx, [ebp - 0x6a0]
mov dword [ebp - 0x678], ebx
mov byte [ebp - 4], 0
call fcn.10005063
mov eax, dword [ebp - 0x67c]
call fcn.1003a67f
ret
Function at 0x10001a23
Capabilities:
Check if file exists
Clear file content
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x10001b4d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x10001b4d
xor eax, eax
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push ebx
push eax
call fcn.1003af40
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.10002729
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001aa1
shr eax, 4
not eax
and eax, 1
jmp 0x10001b4f
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x41c]
call fcn.10001b5f
test eax, eax
je 0x10001b4d
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], esi
je 0x10001b1c
cmp esi, ebx
je 0x10001b2f
cmp esi, 0xffffffff
je 0x10001b1c
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp esi, ebx
je 0x10001b2f
mov dword [ebp - 0x420], 1
cmp esi, 0xffffffff
jne 0x10001b35
mov dword [ebp - 0x420], ebx
lea ecx, [ebp - 0x424]
call fcn.10001319
xor eax, eax
cmp byte [ebp - 0x420], bl
setne al
jmp 0x10001b4f
xor eax, eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a584
leave
ret 0xc
Function at 0x10001f4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x10001fc6
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.1003af40
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10001fc6
push esi
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x10001fc6
cmp byte [ebp + 0xc], bl
je 0x10001fc1
push ebx
push ebx
push esi
call fcn.10001a23
jmp 0x10001fc8
xor eax, eax
inc eax
jmp 0x10001fc8
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a584
leave
ret 8
Function at 0x10001fd8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.1003afc0
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x201c], eax
mov dword [ebp - 0x2020], ebx
cmp edi, ebx
je 0x100021b6
cmp eax, ebx
je 0x100021b6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10002030
mov dword [ebp - 0x2020], 1
jmp 0x100021b6
push ebx
push ebx
push 3
push ebx
push ebx
mov esi, SysReAllocString
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
push ebx
push ebx
push 3
push ebx
push ebx
push esi
push dword [ebp - 0x201c]
mov dword [ebp - 0x2010], eax
call edi
mov esi, dword [ebp - 0x2010]
mov dword [ebp - 0x2014], eax
cmp esi, ebx
je 0x100021a0
cmp esi, 0xffffffff
je 0x100021a0
cmp eax, ebx
je 0x100021a0
cmp eax, 0xffffffff
je 0x100021a0
xor eax, eax
mov dword [ebp - 0x2034], ebx
lea edi, [ebp - 0x2030]
stosd dword es:[edi], eax
mov dword [ebp - 0x202c], ebx
lea edi, [ebp - 0x2028]
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x2034]
push eax
push esi
call edi
test eax, eax
je 0x100021a0
lea eax, [ebp - 0x202c]
push eax
push dword [ebp - 0x2014]
call edi
test eax, eax
je 0x100021a0
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x202c]
jne 0x100021a0
mov eax, dword [ebp - 0x2030]
cmp eax, dword [ebp - 0x2028]
jne 0x100021a0
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
mov dword [ebp - 0x2018], ebx
push esi
jmp 0x1000218a
cmp dword [ebp - 0x2018], ebx
je 0x10002196
push ebx
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 0x2018]
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x2014]
mov dword [ebp - 0x201c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100021a0
mov ecx, dword [ebp - 0x2018]
cmp ecx, dword [ebp - 0x201c]
jne 0x100021a0
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x200c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1000216c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x100021a0
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10002114
jmp 0x100021a0
mov dword [ebp - 0x2020], 1
lea ecx, [ebp - 0x2014]
call fcn.10001319
lea ecx, [ebp - 0x2010]
call fcn.10001319
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2020]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a584
leave
ret 4

Function at 0x100021cd
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100021e4
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
ret
test al, 1
je 0x100021f3
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
Function at 0x10002350
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1000237c
push esi
push esi
push ebx
call fcn.10001a23
test eax, eax
jne 0x1000237c
pop esi
pop ebx
leave
ret 0xc
push edi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x1000239b
cmp eax, 0xffffffff
jne 0x100023b4
cmp dword [ebp - 4], esi
jne 0x100023a7
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 8]
call fcn.10001319
mov eax, esi
pop edi
jmp 0x10002376
mov edi, dword [ebp + 0x10]
push esi
lea ecx, [ebp + 8]
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100023d8
cmp dword [ebp + 8], edi
jne 0x100023d8
xor esi, esi
inc esi
jmp 0x100023a7
cmp dword [ebp - 4], esi
jne 0x100023a7
lea ecx, [ebp - 8]
call fcn.10001319
jmp 0x100023a0

Function at 0x100023e7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x10002413
push esi
mov edx, dword [esp + 8]
movzx edx, byte [ecx + edx]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x1006df00]
inc ecx
cmp ecx, dword [esp + 0xc]
jl 0x100023f4
pop esi
not eax
ret 0xc

Function at 0x100027e1
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp - 4], eax
movsx eax, byte [ebp + 8]
push eax
lea eax, [ebp - 0x5c]
push str.__c:
push eax
call fcn.10004248
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x10002812
mov eax, dword [eax + 4]
jmp 0x10002815
add eax, 4
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov ebx, eax
push 1
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x3c], ebx
call fcn.1000588b
cmp ebx, esi
je 0x10002845
cmp ebx, 0xffffffff
jne 0x1000285e
lea ecx, [ebp - 0x3c]
call fcn.10001319
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a584
leave
ret
push edi
push 0x28
pop edx
push 9
pop ecx
xor eax, eax
push esi
mov dword [ebp - 0x38], edx
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
push edx
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ebx
mov dword [ebp - 0x40], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
test eax, eax
jne 0x100028ac
or esi, 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10001319
mov eax, esi
jmp 0x10002850
mov esi, dword [ebp - 0x1c]
jmp 0x100028a0
Function at 0x100028b1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x218], edi
test ebx, ebx
je 0x10002987
test edi, edi
je 0x10002987
mov esi, str.deviceMup_
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebx
jne 0x10002905
push edi
push 0x1005c118
push esi
mov eax, ebx
call fcn.10004041
xor eax, eax
inc eax
jmp 0x10002989
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x21c], eax
xor esi, esi
xor eax, eax
inc eax
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x21c]
test ecx, eax
je 0x10002981
push 0x3a
lea eax, [esi + 0x61]
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
push 0x206
lea edi, [ebp - 8]
push eax
stosd dword es:[edi], eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.1003af40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x10002981
push 0
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.1000413d
test eax, eax
jne 0x10002997
inc esi
cmp esi, 0x1a
jl 0x10002913
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003a584
leave
ret
push dword [ebp - 0x218]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
jmp 0x100028f6

Function at 0x10002d19
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x1006c144]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, fcn.10003814
push esi
test eax, eax
je 0x10002da6
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.1003af40
add esp, 0xc
push dword [ebp + 8]
mov dword [esp + 0xc], 0x428
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x10002d9d
cmp esi, 0xffffffff
je 0x10002d9d
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x10002d99
push edi
lea eax, [esp + 0xc]
push eax
call fcn.10003814
test eax, eax
je 0x10002d9d
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10002d7f
lea ecx, [esp + 4]
call fcn.10001319
mov ecx, dword [esp + 0x434]
pop esi
xor ecx, esp
call fcn.1003a584
mov esp, ebp
pop ebp
ret 4
Function at 0x10002dbb
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 8
mov eax, 0x10050f5f
call fcn.1003a593
mov eax, dword [ebp + 0x238]
mov dword [ebp - 0x14], eax
test edi, edi
je 0x10002e50
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
test esi, esi
je 0x10002e48
cmp esi, 0xffffffff
je 0x10002e48
push 0x228
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp], 0x22c
call fcn.1003af40
add esp, 0xc
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x10002e44
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call edi
test eax, eax
je 0x10002e48
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10002e2d
lea ecx, [ebp - 0x10]
call fcn.10001319
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.1003a584
add ebp, 0x230
leave
ret 4

Function at 0x10002e75
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x10002e8a
xor eax, eax
jmp 0x10002f1b
push esi
push edi
push 0x40
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x54], 0x44
call fcn.1003af40
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp esi, ebx
jne 0x10002eb6
xor eax, eax
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], ax
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100015e9
mov edi, eax
lea eax, [ebp - 0x10]
push eax
neg esi
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
sbb esi, esi
and esi, 0xf8000000
add esi, 0x8000000
push esi
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10002f0f
push dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x10002f11
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x10002f11
mov esi, ebx
push edi
call fcn.1000161e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000326b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1000327d
xor eax, eax
jmp 0x100032a2
push edi
call fcn.10003190
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov edi, 0x10003391
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.10002dbb
cmp dword [ebp - 0x10], esi
jne 0x100032a7
xor eax, eax
pop edi
pop esi
leave
ret 8
push dword [ebp - 0x14]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x100032c2
cmp eax, 0xffffffff
jne 0x100032ce
lea ecx, [ebp - 0xc]
call fcn.10001319
mov eax, esi
jmp 0x100032a1
lea ecx, [ebp - 4]
push ecx
push 0xf01ff
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100032c2
push ebx
push esi
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10003386
push dword [ebp + 8]
call fcn.100015e9
push 0x40
mov dword [ebp + 8], eax
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 0x6c], 0x44
call fcn.1003af40
add esp, 0xc
mov dword [ebp - 0x40], 1
cmp dword [ebp + 0xc], esi
je 0x10003337
push 5
pop eax
jmp 0x10003339
xor eax, eax
mov word [ebp - 0x3c], ax
xor eax, eax
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 8]
push 0x420
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x10003375
push dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
call ebx
push dword [ebp + 8]
call fcn.1000161e
push dword [ebp - 8]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 4]
call ebx
pop ebx
jmp 0x100032c2

Function at 0x1000358d
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x100035b4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a584
leave
ret 4
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x210], esi
test esi, esi
je 0x100035d6
cmp esi, 0xffffffff
jne 0x100035e8
xor esi, esi
lea ecx, [ebp - 0x210]
call fcn.10001319
mov eax, esi
pop esi
jmp 0x100035a6
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1003af40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jbe 0x100035d6
push ebx
mov ecx, edi
lea ebx, [ebp - 0x20c]
call fcn.100028b1
xor esi, esi
inc esi
pop ebx
jmp 0x100035d8
Function at 0x10003984
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
or dword [esi], 0xffffffff
push ebx
push dword [esp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10003a19
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x10003a19
push edi
lea edi, [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10003a18
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, ecx
or edx, eax
je 0x10003a18
cmp eax, ebx
jl 0x100039ed
mov eax, 0x400000
jg 0x100039e9
cmp ecx, eax
jbe 0x100039ed
mov edi, eax
jmp 0x100039ef
mov edi, ecx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi]
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x10003a18
push dword [esi + 0x18]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop ebx
ret 4

Function at 0x10004358
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x4f90]
mov eax, 0x5010
call fcn.1003afc0
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp + 0x4f8c], eax
cmp dword [ebp + 0x4fa8], 0
mov eax, dword [ebp + 0x4fa4]
push ebx
mov ebx, dword [ebp + 0x4fa0]
push esi
mov esi, dword [ebp + 0x4f98]
push edi
mov edi, dword [ebp + 0x4f9c]
mov dword [ebp - 0x78], eax
je 0x100043f0
xor eax, eax
push 0x4ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.1003af40
and dword [ebp - 0x7c], 0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x80], 0x5000
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x7c], 1
jne 0x100043f0
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x100043f0
inc eax
jmp 0x10004418
xor eax, eax
cmp dword [ebp - 0x78], eax
je 0x10004400
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x78]
push 1
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x4f8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a584
add ebp, 0x4f90
leave
ret 0x14
Function at 0x10004562
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10052786
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.1003afc0
mov eax, dword [0x1006c144]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x2028], ecx
mov dword [ebp - 0x2018], eax
mov dword [ebp - 0x202c], edi
call fcn.10004bef
push dword [ebp - 0x2018]
xor ebx, ebx
push esi
inc ebx
lea esi, [ebp - 0x2024]
mov dword [ebp - 0x202c], ebx
call fcn.10001333
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x2020], edi
je 0x1000468e
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2012]
push edi
push eax
mov dword [ebp - 0x2018], edi
call fcn.1003af40
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x201c]
push eax
lea eax, [ebp - 0x2014]
push eax
push edi
jmp 0x10004678
inc dword [ebp - 0x2018]
lea eax, [ebp - 0x2014]
push eax
lea ecx, [ebp - 0x2048]
call fcn.10004b35
lea eax, [ebp - 0x2048]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2028]
push eax
call fcn.10004f99
push edi
push ebx
lea ecx, [ebp - 0x2048]
mov byte [ebp - 4], bl
call fcn.10005a9d
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x201c]
push eax
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x2018]
push dword [ebp - 0x2020]
mov dword [ebp - 0x201c], 0x1000
call esi
test eax, eax
je 0x10004622
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
cmp dword [ebp - 0x2020], edi
je 0x100046ac
push dword [ebp - 0x2020]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2028]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003a584
leave
ret

Function at 0x100046cc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push 1
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x10004719
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret