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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a0234]
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.00407186
mov edi, eax
cmp edi, ebx
je 0x40723b
cmp dword [ebp - 0x218], ebx
je 0x407234
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4072fe
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40725f
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004071cd
mov dword [ebp - 0x224], eax
cmp eax, ebx
jne 0x4072c8
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], 0x100
call edi
test eax, eax
je 0x407243
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], ebx
je 0x4072aa
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 0x4072e4
mov esi, eax
call fcn.00407360
jmp 0x4072ea
cmp dword [ebp - 0x218], ebx
je 0x4072dc
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x4072fe
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp dword [ebp - 0x218], ebx
je 0x4072fc
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.0042cb0b
leave
ret 4
Function at 0x407c1b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x47e92f
call fcn.004331bb
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 0x407c73
call fcn.004066a9
mov esi, eax
jmp 0x407d7d
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x407c8c
call fcn.004066a9
jmp 0x407d6f
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x407c82
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 0x407cc9
mov esi, 0x8007000e
jmp 0x407d71
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x407cde
cmp eax, 0xffffffff
jbe 0x407ce8
push 0x80070216
call fcn.00403a6b
cmp eax, 0x400
jbe 0x407d15
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00406c2c
jmp 0x407d21
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x407cbf
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 0x407c82
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.00407abb
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x407d96
lea eax, [ebp - 0x418]
call fcn.00406c01
mov eax, esi
call fcn.00433217
ret 0xc
Function at 0x409f8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x10], edi
jne 0x40a0c7
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 0x40a0c6
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409fd2
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x220]
call fcn.00401fe9
push 8
pop ebx
cmp dword [esi + 0x14], ebx
jb 0x409ff8
mov eax, dword [esi]
jmp 0x409ffa
mov eax, esi
push eax
call fcn.0042e091
pop ecx
test eax, eax
jne 0x40a0c6
push str.DoneEx
push 7
pop edi
mov eax, esi
call fcn.004028d1
cmp dword [esi + 0x14], ebx
jb 0x40a021
mov eax, dword [esi]
jmp 0x40a023
mov eax, esi
push eax
call fcn.0042e091
pop ecx
test eax, eax
je 0x40a044
cmp dword [esi + 0x14], ebx
jb 0x40a037
mov eax, dword [esi]
jmp 0x40a039
mov eax, esi
push eax
call fcn.0042e1bd
pop ecx
test eax, eax
jne 0x40a0ba
push str.XCell_Compiler
push 0xf
pop edi
mov eax, esi
call fcn.004028d1
cmp dword [esi + 0x14], ebx
jb 0x40a05c
mov eax, dword [esi]
jmp 0x40a05e
mov eax, esi
push eax
call fcn.0042e091
pop ecx
test eax, eax
je 0x40a07f
cmp dword [esi + 0x14], ebx
jb 0x40a072
mov eax, dword [esi]
jmp 0x40a074
mov eax, esi
push eax
call fcn.0042e1bd
pop ecx
test eax, eax
jne 0x40a0ba
push str.AddIns
push 7
pop edi
mov eax, esi
call fcn.004028d1
cmp dword [esi + 0x14], ebx
jb 0x40a097
mov eax, dword [esi]
jmp 0x40a099
mov eax, esi
push eax
call fcn.0042e091
pop ecx
test eax, eax
je 0x40a0c6
cmp dword [esi + 0x14], ebx
jb 0x40a0ad
mov eax, dword [esi]
jmp 0x40a0af
mov eax, esi
push eax
call fcn.0042e1bd
pop ecx
test eax, eax
je 0x40a0c6
xor eax, eax
mov ecx, 0x48cba4
call fcn.00401fe9
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042cb0b
leave
ret

Function at 0x40a0d7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [eax + 0x14], 8
jb 0x40a0e2
mov eax, dword [eax]
push esi
push 0x4911a0
push eax
call fcn.0042e2ad
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40a12a
cmp dword [edi + 0x14], 0x10
jb 0x40a100
mov eax, dword [edi]
jmp 0x40a102
mov eax, edi
add eax, dword [ebp + 8]
push esi
push 1
push dword [ebp + 0xc]
push eax
call fcn.0042e41b
add esp, 0x10
push esi
cmp eax, 1
je 0x40a124
call fcn.0042e502
pop ecx
xor eax, eax
jmp 0x40a12d
call fcn.0042e502
pop ecx
xor eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x40fcd8
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d14
call fcn.0043e960
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x5ec]
push 0x491668
push eax
mov dword [ebp - 0x2d10], ebx
call fcn.0042d77d
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 0x40ff30
push edi
push 0xc
lea eax, [ebp - 0x2d08]
push ebx
push eax
mov dword [ebp - 0x2d14], ebx
call fcn.0042ee00
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.0042ee00
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 0x40fe63
push esi
push 0x3e7
lea eax, [ebp - 0x3eb]
push ebx
push eax
mov byte [ebp - 0x3ec], bl
call fcn.0042ee00
mov eax, dword [ebp - 0x2cf0]
push ebx
mov esi, 0x4ab6e8
lea ecx, [ebp - 0x2cfc]
call fcn.0040fb8f
mov eax, dword [ebp - 0x2cec]
push ebx
mov esi, 0x4abae8
lea ecx, [ebp - 0x2cfc]
call fcn.0040fb8f
mov eax, dword [ebp - 0x2ce4]
push 1
lea esi, [ebp - 0x3ec]
lea ecx, [ebp - 0x2cfc]
call fcn.0040fb8f
push 0x4abae8
push 0x4ab2e8
call fcn.004307d0
add esp, 0x20
pop esi
cmp byte [0x4aaee8], bl
jne 0x40fe4f
movzx eax, byte [ebp - 0x3ec]
push eax
call fcn.004317dc
pop ecx
test eax, eax
jne 0x40fe3a
movzx eax, byte [ebp - 0x3d9]
push eax
call fcn.004317dc
pop ecx
test eax, eax
je 0x40fe4f
lea eax, [ebp - 0x3ec]
push eax
push 0x4aaee8
call fcn.004307d0
pop ecx
pop ecx
jmp 0x40fe69
cmp byte [0x4ab2e8], bl
je 0x40fe69
mov dword [ebp - 0x2d10], 1
jmp 0x40fe69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
call fcn.0042ee00
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 0x40ff1e
xor eax, eax
push 0x3e6
mov word [ebp - 0x3ec], ax
lea eax, [ebp - 0x3ea]
push ebx
push eax
call fcn.0042ee00
lea eax, [ebp - 0x2cec]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.004307d0
add esp, 0x14
cmp byte [0x4aaee8], bl
jne 0x40ff24
movsx eax, byte [ebp - 0x3ec]
push eax
call fcn.004317dc
pop ecx
test eax, eax
jne 0x40feff
movsx eax, byte [ebp - 0x3d9]
push eax
call fcn.004317dc
pop ecx
test eax, eax
je 0x40ff24
lea eax, [ebp - 0x3ec]
push eax
push 0x4aaee8
call fcn.004307d0
pop ecx
pop ecx
mov dword [ebp - 0x2d10], 1
jmp 0x40ff24
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.0042cb0b
leave
ret
Function at 0x410987
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0043e960
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.004107d9
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.0042ee00
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.0042ee00
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 0x4917c4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x100c]
mov edx, ebx
call fcn.004108e0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0042cb0b
leave
ret

Function at 0x410a4d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.0043e960
mov eax, dword [0x4a0234]
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.004107d9
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.0042ee00
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.0042ee00
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 0x4917c4
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.004108e0
push dword [ebp - 0x1028]
lea eax, [ebp - 0x14]
push eax
call fcn.0040f7e7
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0042cb0b
leave
ret
Function at 0x410bf8
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push 0x20
mov eax, 0x47c79f
call fcn.0043314f
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 0x410c36
mov dword [ebp - 0x1c], esi
push 0x4993bc
lea eax, [ebp - 0x1c]
push eax
call fcn.004325ed
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 0x410c6b
mov dword [ebp - 0x20], esi
push 0x4993bc
lea eax, [ebp - 0x20]
jmp 0x410c30
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 0x410c8b
mov dword [ebp - 0x24], esi
push 0x4993bc
lea eax, [ebp - 0x24]
jmp 0x410c30
push 0x4917d0
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x410cb6
mov dword [ebp - 0x28], esi
push 0x4993bc
lea eax, [ebp - 0x28]
jmp 0x410c30
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 0x410d08
mov dword [ebp - 0x2c], esi
push 0x4993bc
lea eax, [ebp - 0x2c]
jmp 0x410c30
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
call fcn.004331f4
ret 8

Function at 0x410dd0
Capabilities:
Enumerate gui resources

Disassembly:
push 0x2c
mov eax, 0x47f07a
call fcn.00433185
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 0x410e07
mov ebx, ecx
sub ebx, ecx
sar ebx, 2
shl ebx, 2
push ebx
push ecx
push edi
call fcn.0042cdb0
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.00402064
lea eax, [ebp - 0x34]
push eax
push 0x410d23
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.0040216b
mov eax, ebx
call fcn.00433208
ret

Function at 0x411019
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x41104f
cmp word [esi], bx
je 0x41104f
push ebx
push esi
call fcn.0042e5f5
pop ecx
pop ecx
test eax, eax
jne 0x41104f
cmp word [esi], bx
je 0x411052
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411052
test al, 0x10
je 0x411052
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x411058
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a0234]
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 0x491818
push eax
xor esi, esi
call fcn.0042d77d
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 0x4110ed
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x4110ed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, esi
je 0x4110ed
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, esi
je 0x4110ed
mov esi, dword [ebp - 0x30]
or ecx, 0xffffffff
xor eax, eax
call fcn.00409494
mov eax, edi
mov ecx, ebx
mov edx, esi
call fcn.004096e3
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cb0b
leave
ret

Function at 0x4110fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a0234]
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.0042ee00
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 0x411150
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x210]
call fcn.00401fe9
cmp dword [esi + 0x14], 8
jb 0x411174
mov eax, dword [esi]
jmp 0x411176
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042cb0b
leave
ret
Function at 0x411183
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4a0234]
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.00401cfb
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.0042ee00
add esp, 0xc
mov dword [ebp - 0x80c], 0x400
cmp dword [ebp - 0x808], edi
je 0x41129d
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 0x411291
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411231
sub eax, edx
push ebx
sar eax, 1
lea ecx, [ebp - 0x804]
call fcn.00401fe9
push 0xc
mov edi, str._SystemRoot_
push edi
xor eax, eax
mov ecx, esi
call fcn.0040a45d
mov ebx, eax
cmp ebx, 0xffffffff
je 0x411290
push 0x400
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x411290
lea eax, [ebp - 0x804]
push eax
push edi
call fcn.0043097d
pop ecx
push eax
push ebx
push esi
call fcn.0040ddb1
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.0042cb0b
leave
ret
Function at 0x411313
Capabilities:
Get common file path

Disassembly:
push 0x860
mov eax, 0x47f004
call fcn.00433185
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.0042ee00
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.00402ef9
mov dword [ebp - 4], edi
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
jae 0x411389
mov eax, esi
mov ecx, dword [ebp - 0x838]
lea eax, [eax + ecx*2]
cmp word [eax - 2], 0x5c
je 0x4113ac
xor edi, edi
push 0x4911a8
inc edi
lea eax, [ebp - 0x848]
call fcn.004028d1
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.0040d73b
lea ecx, [ebp - 0x848]
push ecx
lea ecx, [ebp - 0x82c]
push ecx
mov ebx, eax
call fcn.00411495
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x411408
lea eax, [ebp - 0x82c]
push 0
push eax
call fcn.0042e5f5
pop ecx
pop ecx
test eax, eax
jne 0x411437
push 1
xor edi, edi
lea esi, [ebp - 0x82c]
call fcn.0040216b
push 1
lea esi, [ebp - 0x864]
call fcn.0040216b
jmp 0x4113ac
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x41144c
lea eax, [ebp - 0x82c]
push eax
call fcn.0042e1bd
mov esi, dword [ebp - 0x868]
pop ecx
lea ebx, [ebp - 0x82c]
call fcn.00402a16
push 1
xor edi, edi
mov esi, ebx
call fcn.0040216b
push 1
lea esi, [ebp - 0x864]
call fcn.0040216b
push 1
lea esi, [ebp - 0x848]
call fcn.0040216b
mov eax, dword [ebp - 0x868]
call fcn.00433208
ret
Function at 0x4138a0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480b00
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4a0234]
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.00410a4d
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.00402aa8
lea esi, [ebp - 0x48]
call fcn.00410b3d
add esp, 0x1c
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x413967
cmp dword [ebp - 0x18], 0x10
jb 0x413929
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042cb00
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [esi + 0x14], 0x10
jae 0x41394c
mov edx, dword [esi + 0x10]
inc edx
push edx
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0042cdb0
add esp, 0xc
jmp 0x413953
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 0x413979
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0042cb00
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 0x41399f
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
inc edx
push edx
push ecx
push eax
call fcn.0042ee80
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 0x4139db
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042cb00
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.0042cb0b
mov esp, ebp
pop ebp
ret
Function at 0x414b10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4a0234]
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.0042ee00
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 0x414c21
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.0042cb0b
mov esp, ebp
pop ebp
ret