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

Disassembly:
push 0x6bc
mov eax, 0x10053c19
call fcn.1003b89c
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.10004f74
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
test esi, esi
jne 0x100018c7
lea eax, [ebp - 0x6a0]
push eax
mov ecx, edi
call fcn.10004f8d
lea ecx, [ebp - 0x6a0]
mov dword [ebp - 0x678], ebx
mov byte [ebp - 4], 0
call fcn.10004fe3
mov eax, edi
jmp 0x100019f6
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 0x100019c9
push 0x1005d1f4
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100019a2
push 0x1005d1f8
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100019a2
cmp dword [ebp - 0x670], 0xffffffff
je 0x100019a2
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.10004aec
lea eax, [ebp - 0x6bc]
push eax
lea eax, [ebp - 0x6c8]
push eax
lea ecx, [ebp - 0x6a0]
mov byte [ebp - 4], 2
call fcn.1000500b
push 0
push ebx
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], bl
call fcn.10005a26
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000190e
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x67c]
lea eax, [ebp - 0x6a0]
push eax
call fcn.10004f8d
lea ecx, [ebp - 0x6a0]
mov dword [ebp - 0x678], ebx
mov byte [ebp - 4], 0
call fcn.10004fe3
mov eax, dword [ebp - 0x67c]
call fcn.1003b91f
ret
Function at 0x10001a7e
Capabilities:
Check if file exists
Clear file content
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1006d144]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x10001ba8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x10001ba8
xor eax, eax
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push ebx
push eax
call fcn.1003c1e0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.10002784
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001afc
shr eax, 4
not eax
and eax, 1
jmp 0x10001baa
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.10001bba
test eax, eax
je 0x10001ba8
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 0x10001b77
cmp esi, ebx
je 0x10001b8a
cmp esi, 0xffffffff
je 0x10001b77
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 0x10001b8a
mov dword [ebp - 0x420], 1
cmp esi, 0xffffffff
jne 0x10001b90
mov dword [ebp - 0x420], ebx
lea ecx, [ebp - 0x424]
call fcn.10001336
xor eax, eax
cmp byte [ebp - 0x420], bl
setne al
jmp 0x10001baa
xor eax, eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b824
leave
ret 0xc
Function at 0x10001fa7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006d144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x10002021
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.1003c1e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10002021
push esi
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x10002021
cmp byte [ebp + 0xc], bl
je 0x1000201c
push ebx
push ebx
push esi
call fcn.10001a7e
jmp 0x10002023
xor eax, eax
inc eax
jmp 0x10002023
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b824
leave
ret 8
Function at 0x10002033
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.1003c260
mov eax, dword [0x1006d144]
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 0x10002211
cmp eax, ebx
je 0x10002211
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000208b
mov dword [ebp - 0x2020], 1
jmp 0x10002211
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 0x100021fb
cmp esi, 0xffffffff
je 0x100021fb
cmp eax, ebx
je 0x100021fb
cmp eax, 0xffffffff
je 0x100021fb
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 0x100021fb
lea eax, [ebp - 0x202c]
push eax
push dword [ebp - 0x2014]
call edi
test eax, eax
je 0x100021fb
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x202c]
jne 0x100021fb
mov eax, dword [ebp - 0x2030]
cmp eax, dword [ebp - 0x2028]
jne 0x100021fb
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
mov dword [ebp - 0x2018], ebx
push esi
jmp 0x100021e5
cmp dword [ebp - 0x2018], ebx
je 0x100021f1
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 0x100021fb
mov ecx, dword [ebp - 0x2018]
cmp ecx, dword [ebp - 0x201c]
jne 0x100021fb
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x200c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100021c7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x100021fb
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 0x1000216f
jmp 0x100021fb
mov dword [ebp - 0x2020], 1
lea ecx, [ebp - 0x2014]
call fcn.10001336
lea ecx, [ebp - 0x2010]
call fcn.10001336
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2020]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b824
leave
ret 4

Function at 0x10002228
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 0x1000223f
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
ret
test al, 1
je 0x1000224e
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 0x100023ab
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 0x100023d7
push esi
push esi
push ebx
call fcn.10001a7e
test eax, eax
jne 0x100023d7
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 0x100023f6
cmp eax, 0xffffffff
jne 0x1000240f
cmp dword [ebp - 4], esi
jne 0x10002402
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 8]
call fcn.10001336
mov eax, esi
pop edi
jmp 0x100023d1
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 0x10002433
cmp dword [ebp + 8], edi
jne 0x10002433
xor esi, esi
inc esi
jmp 0x10002402
cmp dword [ebp - 4], esi
jne 0x10002402
lea ecx, [ebp - 8]
call fcn.10001336
jmp 0x100023fb

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

Disassembly:
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x1000246e
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 + 0x1006f000]
inc ecx
cmp ecx, dword [esp + 0xc]
jl 0x1000244f
pop esi
not eax
ret 0xc

Function at 0x1000283c
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1006d144]
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.100041f5
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x1000286d
mov eax, dword [eax + 4]
jmp 0x10002870
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.10005814
cmp ebx, esi
je 0x100028a0
cmp ebx, 0xffffffff
jne 0x100028b9
lea ecx, [ebp - 0x3c]
call fcn.10001336
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b824
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 0x10002907
or esi, 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10001336
mov eax, esi
jmp 0x100028ab
mov esi, dword [ebp - 0x1c]
jmp 0x100028fb
Function at 0x1000290c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1006d144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x218], edi
test ebx, ebx
je 0x100029e2
test edi, edi
je 0x100029e2
mov esi, str.deviceMup_
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebx
jne 0x10002960
push edi
push 0x1005d2c8
push esi
mov eax, ebx
call fcn.10003fee
xor eax, eax
inc eax
jmp 0x100029e4
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 0x100029dc
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.1003c1e0
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 0x100029dc
push 0
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.100040ea
test eax, eax
jne 0x100029f2
inc esi
cmp esi, 0x1a
jl 0x1000296e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003b824
leave
ret
push dword [ebp - 0x218]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
jmp 0x10002951

Function at 0x10002d86
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x1006d144]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, fcn.100037ff
push esi
test eax, eax
je 0x10002e13
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.1003c1e0
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 0x10002e0a
cmp esi, 0xffffffff
je 0x10002e0a
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x10002e06
push edi
lea eax, [esp + 0xc]
push eax
call fcn.100037ff
test eax, eax
je 0x10002e0a
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10002dec
lea ecx, [esp + 4]
call fcn.10001336
mov ecx, dword [esp + 0x434]
pop esi
xor ecx, esp
call fcn.1003b824
mov esp, ebp
pop ebp
ret 4
Function at 0x10002e28
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x1006d144]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 8
mov eax, 0x1005231b
call fcn.1003b833
mov eax, dword [ebp + 0x238]
mov dword [ebp - 0x14], eax
test edi, edi
je 0x10002ebd
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 0x10002eb5
cmp esi, 0xffffffff
je 0x10002eb5
push 0x228
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp], 0x22c
call fcn.1003c1e0
add esp, 0xc
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x10002eb1
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call edi
test eax, eax
je 0x10002eb5
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10002e9a
lea ecx, [ebp - 0x10]
call fcn.10001336
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.1003b824
add ebp, 0x230
leave
ret 4

Function at 0x10002ee2
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 0x10002ef7
xor eax, eax
jmp 0x10002f88
push esi
push edi
push 0x40
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x54], 0x44
call fcn.1003c1e0
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp esi, ebx
jne 0x10002f23
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.10001606
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 0x10002f7c
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 0x10002f7e
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x10002f7e
mov esi, ebx
push edi
call fcn.1000163b
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000327f
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 0x10003291
xor eax, eax
jmp 0x100032b6
push edi
call fcn.100031a4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov edi, 0x100033a5
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.10002e28
cmp dword [ebp - 0x10], esi
jne 0x100032bb
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 0x100032d6
cmp eax, 0xffffffff
jne 0x100032e2
lea ecx, [ebp - 0xc]
call fcn.10001336
mov eax, esi
jmp 0x100032b5
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 0x100032d6
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 0x1000339a
push dword [ebp + 8]
call fcn.10001606
push 0x40
mov dword [ebp + 8], eax
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 0x6c], 0x44
call fcn.1003c1e0
add esp, 0xc
mov dword [ebp - 0x40], 1
cmp dword [ebp + 0xc], esi
je 0x1000334b
push 5
pop eax
jmp 0x1000334d
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 0x10003389
push dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
call ebx
push dword [ebp + 8]
call fcn.1000163b
push dword [ebp - 8]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 4]
call ebx
pop ebx
jmp 0x100032d6

Function at 0x100035a1
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1006d144]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x100035c8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b824
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 0x100035ea
cmp esi, 0xffffffff
jne 0x100035fc
xor esi, esi
lea ecx, [ebp - 0x210]
call fcn.10001336
mov eax, esi
pop esi
jmp 0x100035ba
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1003c1e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jbe 0x100035ea
push ebx
mov ecx, edi
lea ebx, [ebp - 0x20c]
call fcn.1000290c
xor esi, esi
inc esi
pop ebx
jmp 0x100035ec
Function at 0x1000396f
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 0x10003a04
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 0x10003a04
push edi
lea edi, [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10003a03
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, ecx
or edx, eax
je 0x10003a03
cmp eax, ebx
jl 0x100039d8
mov eax, 0x400000
jg 0x100039d4
cmp ecx, eax
jbe 0x100039d8
mov edi, eax
jmp 0x100039da
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 0x10003a03
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 0x10004305
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x4f90]
mov eax, 0x5010
call fcn.1003c260
mov eax, dword [0x1006d144]
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 0x1000439d
xor eax, eax
push 0x4ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.1003c1e0
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 0x1000439d
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1000439d
inc eax
jmp 0x100043c5
xor eax, eax
cmp dword [ebp - 0x78], eax
je 0x100043ad
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.1003b824
add ebp, 0x4f90
leave
ret 0x14
Function at 0x1000450f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10053afc
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.1003c260
mov eax, dword [0x1006d144]
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.10009aff
push dword [ebp - 0x2018]
xor ebx, ebx
push esi
inc ebx
lea esi, [ebp - 0x2024]
mov dword [ebp - 0x202c], ebx
call fcn.10001350
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x2020], edi
je 0x1000463b
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.1003c1e0
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 0x10004625
inc dword [ebp - 0x2018]
lea eax, [ebp - 0x2014]
push eax
lea ecx, [ebp - 0x2048]
call fcn.10004aec
lea eax, [ebp - 0x2048]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2028]
push eax
call fcn.10004f19
push edi
push ebx
lea ecx, [ebp - 0x2048]
mov byte [ebp - 4], bl
call fcn.10005a26
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 0x100045cf
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
cmp dword [ebp - 0x2020], edi
je 0x10004659
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.1003b824
leave
ret

Function at 0x10004679
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 0x100046c6
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