joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406605
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x49e234]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor ebx, ebx
lea edi, [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call fcn.004065be
mov edi, eax
cmp edi, ebx
je 0x406673
cmp dword [ebp - 0x218], ebx
je 0x40666c
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x406736
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x406697
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00406605
mov dword [ebp - 0x224], eax
cmp eax, ebx
jne 0x406700
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], pe_nt_image_headers32
call edi
test eax, eax
je 0x40667b
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], ebx
je 0x4066e2
push dword [ebp - 0x218]
call edi
mov dword [ebp - 0x218], ebx
mov eax, dword [esi + 8]
push dword [ebp - 0x220]
mov dword [ebp - 0x214], ebx
push dword [esi]
cmp eax, ebx
je 0x40671c
mov esi, eax
call fcn.00406798
jmp 0x406722
cmp dword [ebp - 0x218], ebx
je 0x406714
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x406736
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp dword [ebp - 0x218], ebx
je 0x406734
push dword [ebp - 0x218]
call edi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b7cb
leave
ret 4
Function at 0x407053
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x47d920
call fcn.00431e7b
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x4070ab
call fcn.00405ae9
mov esi, eax
jmp 0x4071b5
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x4070c4
call fcn.00405ae9
jmp 0x4071a7
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x4070ba
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x407101
mov esi, 0x8007000e
jmp 0x4071a9
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x407116
cmp eax, 0xffffffff
jbe 0x407120
push 0x80070216
call fcn.00402d70
cmp eax, 0x400
jbe 0x40714d
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00406065
jmp 0x407159
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x4070f7
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x4070ba
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00406ef3
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4071ce
lea eax, [ebp - 0x418]
call fcn.00405ae0
mov eax, esi
call fcn.00431ed7
ret 0xc
Function at 0x4094a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x49e234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x10], edi
jne 0x4095df
push ebx
lea eax, [ebp - 0x220]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4095de
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4094ea
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x220]
call fcn.00402141
push 8
pop ebx
cmp dword [esi + 0x14], ebx
jb 0x409510
mov eax, dword [esi]
jmp 0x409512
mov eax, esi
push eax
call fcn.0042cd51
pop ecx
test eax, eax
jne 0x4095de
push str.DoneEx
push 7
pop edi
mov eax, esi
call fcn.00401755
cmp dword [esi + 0x14], ebx
jb 0x409539
mov eax, dword [esi]
jmp 0x40953b
mov eax, esi
push eax
call fcn.0042cd51
pop ecx
test eax, eax
je 0x40955c
cmp dword [esi + 0x14], ebx
jb 0x40954f
mov eax, dword [esi]
jmp 0x409551
mov eax, esi
push eax
call fcn.0042ce7d
pop ecx
test eax, eax
jne 0x4095d2
push str.XCell_Compiler
push 0xf
pop edi
mov eax, esi
call fcn.00401755
cmp dword [esi + 0x14], ebx
jb 0x409574
mov eax, dword [esi]
jmp 0x409576
mov eax, esi
push eax
call fcn.0042cd51
pop ecx
test eax, eax
je 0x409597
cmp dword [esi + 0x14], ebx
jb 0x40958a
mov eax, dword [esi]
jmp 0x40958c
mov eax, esi
push eax
call fcn.0042ce7d
pop ecx
test eax, eax
jne 0x4095d2
push str.AddIns
push 7
pop edi
mov eax, esi
call fcn.00401755
cmp dword [esi + 0x14], ebx
jb 0x4095af
mov eax, dword [esi]
jmp 0x4095b1
mov eax, esi
push eax
call fcn.0042cd51
pop ecx
test eax, eax
je 0x4095de
cmp dword [esi + 0x14], ebx
jb 0x4095c5
mov eax, dword [esi]
jmp 0x4095c7
mov eax, esi
push eax
call fcn.0042ce7d
pop ecx
test eax, eax
je 0x4095de
xor eax, eax
mov ecx, 0x48ab84
call fcn.00402141
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042b7cb
leave
ret

Function at 0x4095ef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [eax + 0x14], 8
jb 0x4095fa
mov eax, dword [eax]
push esi
push 0x48f158
push eax
call fcn.0042cf6d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x409642
cmp dword [edi + 0x14], 0x10
jb 0x409618
mov eax, dword [edi]
jmp 0x40961a
mov eax, edi
add eax, dword [ebp + 8]
push esi
push 1
push dword [ebp + 0xc]
push eax
call fcn.0042d0db
add esp, 0x10
push esi
cmp eax, 1
je 0x40963c
call fcn.0042d1c2
pop ecx
xor eax, eax
jmp 0x409645
call fcn.0042d1c2
pop ecx
xor eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x40ebed
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d14
call fcn.0043d620
mov eax, dword [0x49e234]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x5ec]
push 0x48f60c
push eax
mov dword [ebp - 0x2d10], ebx
call fcn.0042bdf8
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x5ec]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0c], eax
cmp eax, 0xffffffff
je 0x40ee45
push edi
push 0xc
lea eax, [ebp - 0x2d08]
push ebx
push eax
mov dword [ebp - 0x2d14], ebx
call fcn.0042dac0
mov edi, 0x2710
push edi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
mov dword [ebp - 0x2d08], ebx
mov dword [ebp - 0x2d04], ebx
call fcn.0042dac0
add esp, 0x18
push ebx
lea eax, [ebp - 0x2d14]
push eax
push edi
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40ed78
push esi
push 0x3e7
lea eax, [ebp - 0x3eb]
push ebx
push eax
mov byte [ebp - 0x3ec], bl
call fcn.0042dac0
mov eax, dword [ebp - 0x2cf0]
push ebx
mov esi, 0x4a96c0
lea ecx, [ebp - 0x2cfc]
call fcn.0040eaa4
mov eax, dword [ebp - 0x2cec]
push ebx
mov esi, 0x4a9ac0
lea ecx, [ebp - 0x2cfc]
call fcn.0040eaa4
mov eax, dword [ebp - 0x2ce4]
push 1
lea esi, [ebp - 0x3ec]
lea ecx, [ebp - 0x2cfc]
call fcn.0040eaa4
push 0x4a9ac0
push 0x4a92c0
call fcn.0042f490
add esp, 0x20
pop esi
cmp byte [0x4a8ec0], bl
jne 0x40ed64
movzx eax, byte [ebp - 0x3ec]
push eax
call fcn.0043049c
pop ecx
test eax, eax
jne 0x40ed4f
movzx eax, byte [ebp - 0x3d9]
push eax
call fcn.0043049c
pop ecx
test eax, eax
je 0x40ed64
lea eax, [ebp - 0x3ec]
push eax
push 0x4a8ec0
call fcn.0042f490
pop ecx
pop ecx
jmp 0x40ed7e
cmp byte [0x4a92c0], bl
je 0x40ed7e
mov dword [ebp - 0x2d10], 1
jmp 0x40ed7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
call fcn.0042dac0
add esp, 0xc
push ebx
lea eax, [ebp - 0x2d14]
push eax
push edi
lea eax, [ebp - 0x2cfc]
push eax
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
test eax, eax
je 0x40ee33
xor eax, eax
push 0x3e6
mov word [ebp - 0x3ec], ax
lea eax, [ebp - 0x3ea]
push ebx
push eax
call fcn.0042dac0
lea eax, [ebp - 0x2cec]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0042f490
add esp, 0x14
cmp byte [0x4a8ec0], bl
jne 0x40ee39
movsx eax, byte [ebp - 0x3ec]
push eax
call fcn.0043049c
pop ecx
test eax, eax
jne 0x40ee14
movsx eax, byte [ebp - 0x3d9]
push eax
call fcn.0043049c
pop ecx
test eax, eax
je 0x40ee39
lea eax, [ebp - 0x3ec]
push eax
push 0x4a8ec0
call fcn.0042f490
pop ecx
pop ecx
mov dword [ebp - 0x2d10], 1
jmp 0x40ee39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2d10]
xor ecx, ebp
pop ebx
call fcn.0042b7cb
leave
ret
Function at 0x40f89e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0043d620
mov eax, dword [0x49e234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.0040f6f0
mov dword [ebp - 0x1018], eax
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0x1008], ax
xor edi, edi
lea eax, [ebp - 0x1006]
push edi
push eax
call fcn.0042dac0
xor eax, eax
push esi
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push edi
push eax
mov dword [ebp - 0x100c], edi
mov dword [ebp - 0x1010], edi
mov dword [ebp - 0x1014], edi
call fcn.0042dac0
add esp, 0x18
mov eax, 0x400
push eax
lea ecx, [ebp - 0x808]
push ecx
lea ecx, [ebp - 0x1014]
push ecx
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x100c]
push ecx
push eax
lea eax, [ebp - 0x1008]
push eax
push 0x48f768
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x100c]
mov edx, ebx
call fcn.0040f7f7
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0042b7cb
leave
ret

Function at 0x40f964
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.0043d620
mov eax, dword [0x49e234]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1028], eax
call fcn.0040f6f0
mov dword [ebp - 0x101c], eax
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0x814], ax
xor ebx, ebx
lea eax, [ebp - 0x812]
push ebx
push eax
call fcn.0042dac0
xor eax, eax
push esi
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x1012]
push ebx
push eax
mov dword [ebp - 0x1018], ebx
mov dword [ebp - 0x1024], ebx
mov dword [ebp - 0x1020], ebx
call fcn.0042dac0
add esp, 0x18
mov eax, 0x400
push eax
lea ecx, [ebp - 0x1014]
push ecx
lea ecx, [ebp - 0x1020]
push ecx
lea ecx, [ebp - 0x1024]
push ecx
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x814]
push eax
push 0x48f768
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1018]
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x101c]
lea edx, [ebp - 0x14]
call fcn.0040f7f7
push dword [ebp - 0x1028]
lea eax, [ebp - 0x14]
push eax
call fcn.0040e6a7
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0042b7cb
leave
ret
Function at 0x40fb0f
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push 0x20
mov eax, 0x47b10f
call fcn.00431e0f
push dword [ebp + 8]
xor esi, esi
push esi
push 0x43a
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x40fb4d
mov dword [ebp - 0x1c], esi
push 0x4972f4
lea eax, [ebp - 0x1c]
push eax
call fcn.004312ad
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 4
push 0x1000
lea edi, [eax + eax + 2]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, esi
jne 0x40fb82
mov dword [ebp - 0x20], esi
push 0x4972f4
lea eax, [ebp - 0x20]
jmp 0x40fb47
push esi
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40fba2
mov dword [ebp - 0x24], esi
push 0x4972f4
lea eax, [ebp - 0x24]
jmp 0x40fb47
push 0x48f774
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x40fbcd
mov dword [ebp - 0x28], esi
push 0x4972f4
lea eax, [ebp - 0x28]
jmp 0x40fb47
push esi
push esi
push ebx
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
jne 0x40fc1f
mov dword [ebp - 0x2c], esi
push 0x4972f4
lea eax, [ebp - 0x2c]
jmp 0x40fb47
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
call fcn.00431eb4
ret 8

Function at 0x40fce7
Capabilities:
Enumerate gui resources

Disassembly:
push 0x2c
mov eax, 0x47d55d
call fcn.00431e45
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x38], eax
cmp edi, ecx
je 0x40fd1e
mov ebx, ecx
sub ebx, ecx
sar ebx, 2
shl ebx, 2
push ebx
push ecx
push edi
call fcn.0042ba70
add esp, 0xc
add ebx, edi
mov dword [esi + 4], ebx
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x20], 0
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
and dword [ebp - 4], eax
push str.XLMAIN
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x14], esi
call fcn.004021bc
lea eax, [ebp - 0x34]
push eax
push 0x40fc3a
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, dword [esi + 4]
sub ebx, dword [esi]
push 1
xor edi, edi
lea esi, [ebp - 0x30]
sar ebx, 2
call fcn.00402095
mov eax, ebx
call fcn.00431ec8
ret
Function at 0x40ff30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x49e234]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x30], eax
push 9
xor eax, eax
mov ebx, ecx
pop ecx
push dword [ebp + 8]
mov word [ebp - 0x2c], ax
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
push 0x48f7bc
push eax
xor esi, esi
call fcn.0042bdf8
add esp, 0xc
push ebx
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x40ffc5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x40ffc5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, esi
je 0x40ffc5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, esi
je 0x40ffc5
mov esi, dword [ebp - 0x30]
or ecx, 0xffffffff
xor eax, eax
call fcn.00408977
mov eax, edi
mov ecx, ebx
mov edx, esi
call fcn.00408bc6
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b7cb
leave
ret

Function at 0x40ffd6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x49e234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov esi, ecx
call fcn.0042dac0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x210]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x410028
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x210]
call fcn.00402141
cmp dword [esi + 0x14], 8
jb 0x41004c
mov eax, dword [esi]
jmp 0x41004e
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042b7cb
leave
ret
Function at 0x41005b
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x49e234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
or eax, 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x808], edi
call fcn.00401e13
lea eax, [ebp - 0x808]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
push 0x7fe
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push edi
push eax
call fcn.0042dac0
add esp, 0xc
mov dword [ebp - 0x80c], 0x400
cmp dword [ebp - 0x808], edi
je 0x410175
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
push str.TEMP
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410169
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x410109
sub eax, edx
push ebx
sar eax, 1
lea ecx, [ebp - 0x804]
call fcn.00402141
push 0xc
mov edi, str._SystemRoot_
push edi
xor eax, eax
mov ecx, esi
call fcn.00409975
mov ebx, eax
cmp ebx, 0xffffffff
je 0x410168
push 0x400
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x410168
lea eax, [ebp - 0x804]
push eax
push edi
call fcn.0042f63d
pop ecx
push eax
push ebx
push esi
call fcn.0040cc98
pop ebx
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042b7cb
leave
ret
Function at 0x4101eb
Capabilities:
Get common file path

Disassembly:
push 0x860
mov eax, 0x47d4e7
call fcn.00431e45
mov eax, dword [ebp + 8]
mov dword [ebp - 0x868], eax
xor eax, eax
xor edi, edi
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push edi
push eax
mov dword [ebp - 0x86c], edi
call fcn.0042dac0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea esi, [ebp - 0x848]
call fcn.004021e5
mov dword [ebp - 4], edi
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
jae 0x410261
mov eax, esi
mov ecx, dword [ebp - 0x838]
lea eax, [eax + ecx*2]
cmp word [eax - 2], 0x5c
je 0x410284
xor edi, edi
push 0x48e5a0
inc edi
lea eax, [ebp - 0x848]
call fcn.00401755
and dword [ebp - 0x854], 0
xor eax, eax
mov dword [ebp - 0x850], 7
mov word [ebp - 0x864], ax
push 8
lea eax, [ebp - 0x864]
mov byte [ebp - 4], 1
call fcn.0040c622
lea ecx, [ebp - 0x848]
push ecx
lea ecx, [ebp - 0x82c]
push ecx
mov ebx, eax
call fcn.0041036d
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x4102e0
lea eax, [ebp - 0x82c]
push 0
push eax
call fcn.0042d2b5
pop ecx
pop ecx
test eax, eax
jne 0x41030f
push 1
xor edi, edi
lea esi, [ebp - 0x82c]
call fcn.00402095
push 1
lea esi, [ebp - 0x864]
call fcn.00402095
jmp 0x410284
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x410324
lea eax, [ebp - 0x82c]
push eax
call fcn.0042ce7d
mov esi, dword [ebp - 0x868]
pop ecx
lea ebx, [ebp - 0x82c]
call fcn.0040189a
push 1
xor edi, edi
mov esi, ebx
call fcn.00402095
push 1
lea esi, [ebp - 0x864]
call fcn.00402095
push 1
lea esi, [ebp - 0x848]
call fcn.00402095
mov eax, dword [ebp - 0x868]
call fcn.00431ec8
ret
Function at 0x412770
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47eee0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x49e234]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.0040f964
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.0040192c
lea esi, [ebp - 0x48]
call fcn.0040fa54
add esp, 0x1c
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x412837
cmp dword [ebp - 0x18], 0x10
jb 0x4127f9
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042b7c0
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [esi + 0x14], 0x10
jae 0x41281c
mov edx, dword [esi + 0x10]
inc edx
push edx
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0042ba70
add esp, 0xc
jmp 0x412823
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp dword [ebp - 0x34], 0x10
jb 0x412849
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0042b7c0
add esp, 4
mov edx, dword [ebp - 0x1c]
inc edx
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x41286f
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
inc edx
push edx
push ecx
push eax
call fcn.0042db40
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x18], edi
jb 0x4128ab
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042b7c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b7cb
mov esp, ebp
pop ebp
ret
Function at 0x4137f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x49e234]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x206
xor ebx, ebx
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x20c], ax
call fcn.0042dac0
mov edx, dword [edi + 0x18]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
mov eax, dword [edi + 0x1c]
lea edx, [ebp - 0x218]
push edx
push ebx
mov dword [ebp - 0x214], eax
mov eax, dword [edi]
push 0x44b
lea ecx, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], 5
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.USER32.dll_HideCaret]
mov ecx, dword [esi + 0xb4]
pop ebx
cmp ecx, dword [esi + 0xb8]
je 0x413901
mov eax, dword [ecx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0042b7cb
mov esp, ebp
pop ebp
ret