joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100095fd
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x1002253e
call fcn.1000cca3
mov esi, dword [ebp + 0x214]
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x10009657
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.1000bb01
pop ecx
pop ecx
push ebx
push edi
call fcn.10021af2
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10007afa
mov ecx, dword [eax]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10009674
call fcn.100079eb
jmp 0x10009676
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call fcn.10021af2
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, ebx
je 0x100096c1
call fcn.10007c8c
jmp 0x100096c1
xor eax, eax
cmp edi, ebx
setge al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1000c2c7
add ebp, 0x20c
leave
ret

Function at 0x100096eb
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x1002256e
call fcn.1000cca3
mov esi, dword [ebp + 0x214]
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x10009745
push edi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.1000bb01
pop ecx
pop ecx
push ebx
push edi
call fcn.10021af2
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10007afa
mov ecx, dword [eax]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10009762
call fcn.100079eb
jmp 0x10009764
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call fcn.10021af2
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, ebx
je 0x100097af
call fcn.10007c8c
jmp 0x100097af
xor eax, eax
cmp edi, ebx
setge al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1000c2c7
add ebp, 0x20c
leave
ret
Function at 0x10009e9e
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x100225ce
call fcn.1000cca3
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.10021af2
test eax, eax
je 0x10009ec9
call fcn.10009e8f
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x10023938
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x10009f24
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.1000bb01
pop ecx
pop ecx
push edi
push esi
call fcn.10021af2
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.1000a299
push eax
push esi
push 0x100249ec
call fcn.1000bb01
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x10009f1d
ret
cmp ebx, edi
je 0x10009f2f
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x10009fe0
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x10009f8c
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10009ee8
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x10009fe0
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x10009fe0
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10009ee8
mov eax, esi
call fcn.1000cd0f
ret
Function at 0x1000a7a8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.1000c370
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xfa0]
xor ebx, ebx
mov esi, 0x7ff
push esi
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x795]
push ebx
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x7c], 1
mov byte [ebp + 0x794], bl
call fcn.1000c3a0
push esi
lea eax, [ebp - 0x6b]
push ebx
push eax
mov byte [ebp - 0x6c], bl
call fcn.1000c3a0
push edi
call fcn.1000ecb7
add esp, 0x1c
cmp eax, ebx
je 0x1000a838
push eax
push dword [ebp + 0xfa8]
push dword [ebp - 0x78]
call fcn.10021af2
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x1000a99a
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x70]
push eax
push 0x20019
push ebx
push dword [0x1002b174]
push SysReAllocString
call edi
test eax, eax
je 0x1000a860
xor eax, eax
jmp 0x1000a99a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xfa8]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x70]
call esi
test eax, eax
je 0x1000a891
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1000a99a
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x794]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x10025608
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x800
call esi
test eax, eax
je 0x1000a8bb
xor ebx, ebx
inc ebx
jmp 0x1000a881
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x70]
push eax
push 0x20019
push ebx
push str.SOFTWAREOracleJavaDeploy
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x1000a8b6
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push str.deployment.modified.timestamp
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x800
call esi
test eax, eax
jne 0x1000a8b6
lea eax, [ebp + 0x794]
push eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x74], 0x800
call fcn.10021af2
pop ecx
pop ecx
test eax, eax
js 0x1000a997
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x70]
call esi
test eax, eax
jne 0x1000a8b6
push dword [ebp - 0x70]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
call fcn.10021af2
test eax, eax
jne 0x1000a997
lea eax, [ebp - 0x70]
push eax
push 0x20006
push ebx
push dword [0x1002b174]
push SysReAllocString
call edi
test eax, eax
jne 0x1000a859
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 1
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1000a881
push dword [ebp - 0x70]
call esi
push dword [ebp - 0x78]
push dword [ebp - 0x80]
call fcn.10021af2
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xf94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c2c7
add ebp, 0xf98
leave
ret
Function at 0x1000c2c7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002b19c]
jne 0x1000c2d1
repz ret
jmp fcn.10011efc

Function at 0x10021af2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10021b01
pop dword [ebp - 0x1c]
mov eax, 0xafcc98a6
add eax, 0x6035825b
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x40b29
push 0
mov eax, 0x8bf301e8
add eax, 0x840f2f54
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x53b3
mov edi, eax
mov ebx, 0x435948f9
sub ebx, 0x335620f9
add ebx, dword [ebp - 0x1c]
mov esi, 0xe1e09ead
add esi, 0xcabece4f
xor dword [ebp - 0x14], 0xcda91e07
mov edx, dword [ebx]
sub dword [ebp - 8], 0x385b77fe
xor edx, esi
sub dword [ebp - 0x14], eax
mov dword [edi], edx
sub dword [ebp - 0x10], 0x952dc9b3
add edi, 0x51475110
add edi, 0xaeb8aef4
add ebx, 0x37c55f97
add ebx, 0xc83aa06d
loop 0x10021b5a
add eax, 0x81633ce5
add eax, 0x7e9e04ba
mov ebx, eax
add eax, 0xc688152f
sub eax, 0xc688152a
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4046b8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4046c6
push 0xd
pop eax
jmp 0x4046f9
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4046cd
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x404b6d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x477af4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push ecx
push dword [esi]
mov dword [ebp - 0x21c], ecx
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call fcn.00404b2f
mov ebx, eax
cmp ebx, edi
je 0x404bd3
cmp dword [ebp - 0x214], edi
je 0x404bcc
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x404c6b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x404bfb
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.00404b6d
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x404c7c
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], pe_nt_image_headers32
call ebx
test eax, eax
je 0x404bdb
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x404c46
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.00404ce9
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x404c69
push dword [ebp - 0x214]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443817
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x404c90
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x404c6b

Function at 0x404ce9
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x47e050], 0
jne 0x404d19
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404d12
push 0x4647b4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x47e054], eax
mov byte [0x47e050], 1
mov eax, dword [0x47e054]
test eax, eax
je 0x404d31
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x404d3d
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x406c07
Capabilities:
Hide graphical window

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esp + 8], 1
push edi
mov edi, ecx
jne 0x406c49
push str.tray_click__
lea ecx, [edi + 0x3c]
call fcn.00406409
mov ebx, eax
pop ecx
test ebx, ebx
jge 0x406c49
push esi
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
lea esi, [edi + 0x8c]
cmp byte [esi], 0
je 0x406c44
call fcn.00409b17
and dword [edi + 8], 0
pop esi
pop edi
mov eax, ebx
pop ebx
ret 4
Function at 0x4077fd
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x477af4]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00444550
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407856
cmp dword [ebp - 0x7c], 5
jae 0x407852
cmp dword [ebp - 0x7c], 4
jne 0x407856
cmp dword [ebp - 0x78], 0x5a
jb 0x407856
xor eax, eax
jmp 0x407859
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00443817
add ebp, 0x98
leave
ret

Function at 0x407b9e
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x457402
call fcn.00446efc
mov edi, ecx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040f681
test al, al
je 0x407c45
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, 0x2000
cmp eax, esi
jae 0x407bf8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push 0xb
call dword [eax + 4]
jmp 0x407c5d
push ebx
push ebx
add eax, 0xffffe000
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov ecx, esi
call fcn.0040b557
mov eax, edi
call fcn.0040b5c8
test al, al
jne 0x407c29
mov esi, dword [ebp + 0xc]
add edi, 8
call fcn.00405db9
jmp 0x407c5d
mov eax, dword [edi + 4]
mov edi, dword [edi]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407c55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0xc]
call fcn.0040a783
jmp 0x407c5d
mov esi, dword [ebp + 0xc]
call fcn.0040a515
lea esi, [ebp - 0x10]
call fcn.0040f645
call fcn.00446fd4
ret

Function at 0x40903a
Capabilities:
Get file version info

Disassembly:
push 0xc
mov eax, 0x4559d0
call fcn.00446f2f
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
mov edi, 0x80040007
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [ebp - 0x18], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x40906f
mov dword [esi], edi
jmp 0x4090ce
push eax
mov dword [ebp - 4], ebx
call fcn.0042c8a9
pop ecx
push dword [ebp - 0x14]
mov dword [esi + 4], eax
push ebx
push eax
call fcn.00444550
add esp, 0xc
jmp 0x40909f
push dword [esi + 4]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4090cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4090c8
and eax, 0xffff
or eax, 0x80070000
mov dword [esi], eax
jmp 0x4090ce
mov dword [esi], ebx
mov eax, esi
call fcn.00446fd4
ret 8
Function at 0x4091a1
Capabilities:
Accept command line arguments

Disassembly:
push 0x40
mov eax, 0x4587fe
call fcn.00446f2f
mov esi, dword [ebp + 8]
push 0x47aa78
mov ecx, esi
call fcn.00402325
lea eax, [esi + 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041980b
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401db9
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x18], ebx
je 0x409320
cmp edi, ebx
je 0x40932b
mov byte [ebp - 4], 3
push dword [edi]
mov ecx, esi
call fcn.0040257f
xor esi, esi
inc esi
cmp esi, dword [ebp - 0x18]
jge 0x409320
push dword [edi + esi*4]
lea ecx, [ebp - 0x1c]
call fcn.00401db9
mov ebx, 0x464c78
push ebx
push 0x46509c
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 4
call fcn.00409ddb
push ebx
push 0x4650a0
lea eax, [ebp - 0x1c]
push eax
call fcn.00409ddb
push ebx
lea ecx, [ebp - 0x20]
call fcn.00401db9
lea eax, [esi + 1]
mov byte [ebp - 4], 5
cmp eax, dword [ebp - 0x18]
jge 0x409273
push dword [edi + esi*4 + 4]
lea ecx, [ebp - 0x20]
call fcn.0040257f
push ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call fcn.0040234a
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 6
call fcn.0040234a
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 5
call fcn.00408a12
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00408a65
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 4
push eax
lea ebx, [ebp - 0x4c]
call fcn.0040825a
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004034fb
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004034fb
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004034fb
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.004034fb
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004034fb
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004034fb
inc esi
jmp 0x409216
test edi, edi
je 0x40932b
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004034fb
mov eax, dword [ebp + 8]
call fcn.00446fd4
ret 4

Function at 0x40a366
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x477af4]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.00444550
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a3b4
cmp dword [ebp - 0x7c], 6
jb 0x40a3b4
xor eax, eax
inc eax
jmp 0x40a3b6
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00443817
add ebp, 0x98
leave
ret
Function at 0x40afb3
Capabilities:
Create process on windows

Disassembly:
push 0x40
mov eax, 0x45725c
call fcn.00446efc
push 0x47aa78
lea ecx, [ebp - 0x10]
call fcn.00402325
xor edi, edi
lea esi, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.004096a4
cmp eax, edi
je 0x40afff
push str.shared::lite::security::CSecurityDataProvider::Elevate
push eax
push edi
call fcn.00429b80
mov ecx, eax
call fcn.00429e30
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004034fb
xor al, al
jmp 0x40b070
push 0x38
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.00444550
mov esi, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x40], str.runas
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x30], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
cmp ebx, edi
jne 0x40b063
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x40b050
and eax, 0xffff
or eax, 0x80070000
push str.shared::lite::security::CSecurityDataProvider::Elevate
push eax
push edi
call fcn.00429b80
mov ecx, eax
call fcn.00429e30
lea ecx, [esi - 0x10]
call fcn.004034fb
cmp ebx, edi
setne al
call fcn.00446fd4
ret

Function at 0x40b344
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x477af4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x40b3b2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40b3a9
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x10], ebx
pop ebx
setne al
xor ecx, ebp
call fcn.00443817
leave
ret
Function at 0x40b847
Capabilities:
Check if file exists
Copy file

Disassembly:
push 8
mov eax, 0x45879e
call fcn.00446efc
mov esi, ecx
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40b98c
push dword [ebp + 8]
call fcn.00443826
pop ecx
cmp eax, 1
jb 0x40b98c
cmp dword [ebp + 0xc], edi
je 0x40b98c
push dword [ebp + 0xc]
call fcn.00443826
pop ecx
cmp eax, 3
jb 0x40b98c
cmp dword [ebp + 0x10], edi
je 0x40b98c
push dword [ebp + 0x10]
call fcn.00443826
pop ecx
cmp eax, 3
jb 0x40b98c
mov ebx, 0x47aa78
push ebx
lea ecx, [ebp - 0x10]
call fcn.00402325
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040b616
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x40b8f6
mov eax, dword [esi]
push 3
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esi + 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004034fb
mov eax, esi
jmp 0x40b99b
push ebx
lea ecx, [ebp + 0xc]
call fcn.00402325
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.0040b616
mov ebx, dword [ebp + 0xc]
pop ecx
pop ecx
push ebx
call edi
mov ecx, esi
test eax, eax
je 0x40b936
mov eax, dword [esi]
push 0xb7
call dword [eax + 4]
mov esi, dword [esi + 0x10]
lea ecx, [ebx - 0x10]
call fcn.004034fb
jmp 0x40b8e4
push dword [ebp + 0x10]
call fcn.0040c2c5
test al, al
jne 0x40b952
mov edx, dword [ebp + 0x10]
mov ecx, esi
call fcn.0040bc2e
push eax
call fcn.0040a79c
mov eax, esi
call fcn.0040a7ac
test al, al
jne 0x40b929
mov edi, dword [ebp - 0x10]
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40b979
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040a783
mov esi, dword [esi + 0x10]
lea ecx, [ebx - 0x10]
call fcn.004034fb
lea ecx, [edi - 0x10]
jmp 0x40b8ea
mov eax, dword [esi]
push 0x80070057
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 0x10]
call fcn.00446fd4
ret 0xc
Function at 0x40bb2e
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x458725
call fcn.00446efc
mov esi, ecx
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x40bc19
cmp dword [ebp + 0x14], edi
je 0x40bc19
push 0x47aa78
lea ecx, [ebp - 0x10]
call fcn.00402325
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.0040b616
pop ecx
pop ecx
push eax
call fcn.0040a79c
mov eax, esi
call fcn.0040a7ac
mov ebx, dword [ebp - 0x10]
test al, al
je 0x40bb96
mov esi, dword [esi + 0x10]
lea ecx, [ebx - 0x10]
call fcn.004034fb
mov eax, esi
jmp 0x40bc26
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040f681
test al, al
jne 0x40bbd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040a783
mov edi, dword [eax + 0x10]
lea esi, [ebp + 0xc]
call fcn.0040f645
mov esi, edi
jmp 0x40bb87
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x14], edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bbbf
call fcn.0040a515
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, dword [esi + 0x10]
lea esi, [ebp + 0xc]
call fcn.0040f645
lea ecx, [ebx - 0x10]
call fcn.004034fb
mov eax, edi
jmp 0x40bc26
mov eax, dword [esi]
push 0x80070057
call dword [eax + 4]
mov eax, dword [esi + 0x10]
call fcn.00446fd4
ret 0x10