joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x424008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.Setup.dat
push 0x425854
lea eax, [ebp - 0x108]
push 0x420870
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x421098]
mov ebx, eax
movq xmm0, qword [str.F_Setup.exe__n]
lea eax, [ebp - 0x10c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push eax
mov dword [ebp - 0x100], ecx
lea eax, [ebp - 0x108]
mov cx, word [0x42109c]
push eax
movq qword [ebp - 0x108], xmm0
mov word [ebp - 0xfc], cx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
call esi
mov eax, dword [0x4210a8]
movq xmm0, qword [str.F_Setup.dat__n]
mov dword [ebp - 0x100], eax
mov ax, word [0x4210ac]
mov word [ebp - 0xfc], ax
lea eax, [ebp - 0x10c]
push 0
push eax
lea eax, [ebp - 0x108]
movq qword [ebp - 0x108], xmm0
push eax
call edi
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x426894
call edi
push eax
push 0x426894
push ebx
call esi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x428fa4
call edi
push eax
push 0x428fa4
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
xor ecx, ebp
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
Function at 0x407f10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x424008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov ebx, edx
push 0
push eax
mov dword [ebp - 0x21c], ebx
mov esi, ecx
call fcn.0040bcd0
add esp, 0xc
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
jne 0x407f7f
push 0x20
push 0x421994
push 0x4219a0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
push edi
push ebx
call fcn.0040d129
mov edi, eax
add esp, 4
test edi, edi
jne 0x407fbb
push 0x20
push 0x421994
push 0x4219d0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
push edi
push ebx
push 0
push dword [ebp - 0x21c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x408004
push edi
call fcn.0040d124
add esp, 4
push 0x20
push 0x421994
push 0x4219ec
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push str.VarFileInfoTranslation
push edi
call ebx
test eax, eax
jne 0x408059
push edi
call fcn.0040d124
add esp, 4
push 0x20
push 0x421994
push 0x421a38
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x214]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x20c]
push str.StringFileInfo_04x_04xInternalName
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call ebx
cmp dword [ebp - 0x210], 0
jne 0x4080e7
mov ecx, dword [ebp - 0x214]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x20c]
push str.StringFileInfo_04x_04xProductName
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call ebx
cmp dword [ebp - 0x210], 0
je 0x408046
mov ecx, dword [ebp - 0x218]
sub esi, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x4080f0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
Function at 0x408150
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x424008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov edi, ecx
push 0
push eax
call fcn.0040bcd0
add esp, 0xc
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
cmp ebx, 0x104
jle 0x4081c4
push 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x30
push 0x42564c
push 0x421ac0
push dword [0x425188]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
mov al, byte [edi + esi]
inc esi
cmp al, 0x5c
jne 0x4081c4
cmp esi, ebx
je 0x408215
mov al, byte [edi + esi]
test al, al
je 0x4081dc
inc esi
cmp al, 0x5c
jne 0x4081d0
push esi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040d140
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x408211
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x40822b
cmp esi, ebx
jne 0x4081d0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push 0x421b00
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x508]
push 0x30
push 0x42564c
push eax
push dword [0x425188]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
Function at 0x408280
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x424008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x425750
push 0x425548
push 0x425414
lea eax, [ebp - 0x110]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x110]
push str..ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0x110]
push eax
push 0
push str.IsInstall
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
test ebx, ebx
je 0x4083a6
lea eax, [ebp - 0x110]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x420860
push str.InstallFold
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [ebp - 0x218]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x408320
mov ax, word [0x420894]
mov edx, 0x425750
mov word [edi], ax
mov esi, edx
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x408340
lea edi, [ebp - 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408350
mov ecx, edx
lea eax, [ebp - 0x358]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
lea eax, [ebp - 0x218]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4083a4
mov esi, dword [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and esi, 0x10
jne 0x4083a4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
Function at 0x4093e0
Capabilities:
Copy file
Create process on windows
Get disk information
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
mov eax, dword [0x424008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x408620
push dword [0x425188]
push 0x72
push dword [0x425184]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
jne 0x409422
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
push 0x42520c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x409557
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x322]
push eax
movzx eax, word [ebp - 0x324]
push eax
movzx eax, word [ebp - 0x326]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
movzx eax, word [ebp - 0x328]
push eax
movzx eax, word [ebp - 0x32a]
push eax
movzx eax, word [ebp - 0x32e]
push eax
movzx eax, word [ebp - 0x330]
push eax
lea eax, [ebp - 0x218]
push str.UNINST__d_d_d_d_d_d_d.exe
push eax
call esi
push 0x425750
push 0x425548
push 0x425414
lea eax, [ebp - 0x110]
push str._s_s_s
push eax
call esi
add esp, 0x38
lea eax, [ebp - 0x110]
push str..ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
push str.ExeName
push str.UNINSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x110]
push eax
push 0x104
push 0x425854
push 0x420860
push str.InstallFold
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.Setup.exe
push 0x425854
lea eax, [ebp - 0x320]
push 0x420870
push eax
call esi
lea eax, [ebp - 0x218]
push eax
push 0x425548
push 0x425414
lea eax, [ebp - 0x110]
push str._s_s_s
push eax
call esi
add esp, 0x24
lea eax, [ebp - 0x110]
push 0
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x409576
push str.Setup.exe
push 0x42520c
lea eax, [ebp - 0x110]
push 0x420870
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [0x425180]
test eax, eax
je 0x409590
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x425180], 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x334], 0
xorps xmm0, xmm0
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x36c]
movlpd qword [ebp - 0x364], xmm0
push eax
movlpd qword [ebp - 0x34c], xmm0
movlpd qword [ebp - 0x344], xmm0
movlpd qword [ebp - 0x33c], xmm0
mov dword [ebp - 0x36c], 0x3c
mov dword [ebp - 0x350], 1
mov dword [ebp - 0x358], str.Uninstall
mov dword [ebp - 0x354], 0x425414
mov dword [ebp - 0x368], 0x8000
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
Function at 0x40a5f0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x424008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x160
lea eax, [ebp - 0x168]
mov esi, ecx
push 0
push eax
call fcn.0040bcd0
add esp, 0xc
lea eax, [ebp - 0x168]
push 0x200
push 0x160
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x15c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a640
sub eax, edx
je 0x40a685
lea eax, [ebp - 0x15c]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40a685
push 0
push 0xf060
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0040aa0f
mov esp, ebp
pop ebp
ret

Function at 0x401b6c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [fcn.0040e064]
test eax, eax
je 0x401bab
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401bab
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401bab
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401bab
cmp dword [ecx + 0x74], 0xe
jbe 0x401bab
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40cf00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40cf2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cf2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10003680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100036d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100036d9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100036ca
cmp esi, edx
jae 0x100036d9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100036b8
cmp esi, edx
jae 0x100036d9
cmp word [esi], 0
je 0x100036d9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x100057e0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a7370
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100db774]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x54
call fcn.1006937e
mov ecx, dword [ebp + 8]
mov esi, eax
lea edx, [esi + 4]
mov dword [ebp - 0x14], esi
add esp, 4
mov dword [ebp - 4], 0
lea edi, [edx + 4]
mov dword [ebp - 0x18], edx
mov dword [esi], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8CAsyncExecuteURLExe__AEXV__basic_string_DU__char_traits_D_std__V__allocator_D_2__2_00_ZPAV3_AAV42_AAV42_AAV42__std__X__V_std__.0
lea ebx, [ecx + 4]
mov eax, dword [ecx]
mov ecx, edi
push ebx
mov dword [edx], eax
mov dword [ebp + 8], edi
call fcn.100058c0
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 1
lea ecx, [edi + 0x18]
push eax
mov dword [ebp - 0x18], ecx
call fcn.100058c0
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x30]
push eax
mov dword [ebp - 0x18], ecx
call fcn.100058c0
mov eax, dword [ebx + 0x48]
mov dword [edi + 0x48], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005f50
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a7480
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100db774]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ecx + 4]
lea eax, [ecx + 8]
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov ecx, esp
mov dword [ebp - 0x14], esp
lea esi, [eax + 0x18]
lea edi, [eax + 0x30]
push eax
call fcn.100058c0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
call fcn.100058c0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push edi
call fcn.100058c0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx + 0x48]
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100068b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a74f7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100db774]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x100aecfc
mov dword [ebp - 0x14], edi
mov dword [edi + 0x50], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.1000b680
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1006937e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10006977
push 1
mov byte [ebp - 4], 3
call fcn.10057401
add esp, 4
mov dword [ebx + 4], eax
jmp 0x10006979
xor ebx, ebx
lea eax, [esi + 4]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a76f6
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x100db774]
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
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x414], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
test edi, edi
jne 0x100094ed
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x100094ed
call fcn.10008160
mov esi, eax
jmp 0x100095e6
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10009510
call fcn.10008160
jmp 0x100095d9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x10009528
call fcn.10008160
jmp 0x100095d9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x10009543
mov esi, 0x8007000e
jmp 0x100095db
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x10009620
jb 0x10009561
cmp eax, 0xffffffff
ja 0x10009620
cmp eax, 0x400
jbe 0x10009576
push eax
lea ecx, [ebp - 0x414]
call fcn.10008080
jmp 0x10009582
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
mov dword [ebp - 4], 1
jne 0x10009599
mov esi, 0x8007000e
jmp 0x100095db
push esi
push dword [ebp - 0x414]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x100095b9
call fcn.10008160
jmp 0x100095d9
mov eax, dword [ebp - 0x414]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x424]
push dword [ebp - 0x414]
call fcn.100092b0
mov esi, eax
test edi, edi
je 0x100095e6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x10009600
lea ecx, [ebp - 0x414]
call fcn.10008420
nop
mov eax, esi
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.100693bc
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.10001a70
int3
Function at 0x10009fc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a777a
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push esi
push edi
mov eax, dword [0x100db774]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x100dd950]
test ecx, ecx
jne 0x1000a04f
push 0x100da014
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100dd950], 0
jne 0x1000a03e
push 4
call fcn.1006937e
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1000a02c
mov ecx, eax
call fcn.1006aa70
mov ecx, eax
jmp 0x1000a02e
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp - 0x10], eax
mov dword [0x100dd950], ecx
push 0x100da014
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100dd950]
push 0
push str.Basic
push 1
call fcn.1006ab00
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xc], 0
jne 0x1000a0df
call fcn.1005c2e0
test eax, eax
je 0x1000a0bd
call fcn.1005c2e0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000a0bd
call fcn.1005c2e0
lea ecx, [ebp - 0xa8]
mov edi, eax
call fcn.100068b0
mov esi, eax
push str.StartPlugin
push esi
mov dword [ebp - 4], 1
call fcn.10007500
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0xa8]
call fcn.100075c0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0
push ebx
push 0x1000a2f0
push 0
push 0
call fcn.1007c570
add esp, 0x18
mov dword [ebx + 0xc], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c7d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a78eb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100db774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x220], esi
call fcn.10075330
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1000c84f
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.10002e80
mov ecx, eax
test ecx, ecx
je 0x1000c8c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.10003930
test al, al
jne 0x1000c8a4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c886
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10002a80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100693bc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001a70
int3