joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d10
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x747f23
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x8606e0]
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 bh, cl
push edx
mov edx, 0x81ff40
lea ecx, [ebp - 0x70]
call fcn.0040a1a0
push 0x81fcb8
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040a3c0
push 0x81ff44
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040a3c0
push 0x81ff40
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.0040a3c0
add esp, 0x10
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x403da2
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409480
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x403dcb
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409480
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x403df8
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00409480
xor eax, eax
mov dword [ebp - 0x5c], 7
push 6
push 0x81ff5c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.004083b0
sub esp, 0xc
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xor bl, bl
call fcn.004025d0
test eax, eax
jne 0x403ece
mov esi, dword [ebp - 0x34]
test bh, bh
je 0x403eb2
cmp dword [ebp - 0x74], 8
lea edx, [ebp - 0x88]
lea edi, [ebp - 0x28]
cmovae edx, dword [ebp - 0x88]
cmp dword [ebp - 0x14], 8
cmovae edi, dword [ebp - 0x28]
test edx, edx
jne 0x403e82
mov eax, 0xd
test eax, eax
sete bl
jmp 0x403ec7
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e87
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
jmp 0x403ec7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov bl, 1
test esi, esi
je 0x403edc
push esi
jmp 0x403ed6
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x403edc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x403ef1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409480
mov ecx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x403f20
inc ecx
push ecx
push dword [ebp - 0x88]
lea ecx, [ebp - 0x88]
call fcn.00409480
mov al, bl
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.004ccd8f
mov esp, ebp
pop ebp
ret
Function at 0x405540
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748298
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x8606e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.004083b0
cmp dword [esi + 0x10], 0
je 0x4055bb
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00409660
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4055d0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret
Function at 0x4062f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.HKCR
mov edi, edx
mov esi, ecx
call fcn.0040a810
test eax, eax
jne 0x40630f
mov eax, SysReAllocStringLen
jmp 0x40636c
push str.HKCU
mov ecx, esi
call fcn.0040a810
test eax, eax
jne 0x406326
mov eax, reloc.WS2_32.dll_accept
jmp 0x40636c
push str.HKLM
mov ecx, esi
call fcn.0040a810
test eax, eax
jne 0x40633d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x40636c
push 0x81fd14
mov ecx, esi
call fcn.0040a810
test eax, eax
jne 0x406354
mov eax, reloc.WS2_32.dll_closesocket
jmp 0x40636c
push str.HKCC
mov ecx, esi
call fcn.0040a810
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, reloc.WS2_32.dll_getpeername
cmp dword [edi + 0x14], 8
jb 0x406374
mov edi, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
pop edi
pop esi
test eax, eax
jne 0x4063be
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x406394
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 8
jb 0x40639f
mov edx, dword [edx]
add eax, eax
push eax
push ecx
push 1
push 0
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
test eax, eax
je 0x4063c4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x406a00
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x8606e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov ebx, edx
mov esi, ecx
call fcn.0062ff20
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x406a3d
mov eax, dword [edi]
jmp 0x406a3f
mov eax, edi
push ecx
push eax
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00403a60
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406a90
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x406b42
cmp dword [ebx + 0x14], 8
jb 0x406a98
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x406aa0
mov esi, dword [esi]
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x406b42
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x406b42
test ebx, ebx
je 0x406b42
cmp dword [edi + 0x14], 8
jb 0x406ae7
mov edi, dword [edi]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x406b42
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push ebx
push dword [ebp - 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406b42
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret
Function at 0x407020
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7485e7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x8606e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x81fc94
mov dword [edi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
lea esi, [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00409b10
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00409a40
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x48], 0
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 byte [esi + 0x3d], 0
mov dword [esi + 0x10], ecx
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, dword [0x89047c]
mov dword [esi + 0x40], eax
mov eax, dword [0x890480]
mov dword [esi + 0x44], eax
mov eax, edi
mov dword [esi + 0x4c], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x408e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748718
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x8606e0]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x408fcd
cmp byte [ebx + 0x3d], 0
je 0x408fcd
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x408ee9
xor al, al
jmp 0x408fcf
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
nop dword [eax]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x408f5e
sub eax, 1
je 0x408f62
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x408fb5
xor bl, bl
jmp 0x408fb7
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x408f97
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00633a0d
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x408f5a
cmp byte [ebx + 0x3d], 0
je 0x408fb5
test esi, esi
jne 0x408f20
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00408a40
jmp 0x408f19
mov bl, 1
cmp ecx, 0x10
jb 0x408fc9
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004094e0
mov al, bl
jmp 0x408fcf
mov al, 1
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.004ccd8f
mov esp, ebp
pop ebp
ret
Function at 0x40c160
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748a3c
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x8606e0]
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 esi, ecx
lea ecx, [ebp - 0x2d8]
call fcn.0041cb10
push ecx
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x234]
push str.checkbox_license_agreement
call fcn.0040e260
test eax, eax
je 0x40c1e2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x80]
test eax, eax
jne 0x40c1e2
sub esp, 0x10
lea ecx, [ebp - 0x2d8]
push 0x30
push eax
push 0x8205e0
push dword [esi + 0x24]
call fcn.0041cd30
jmp 0x40c36c
mov ecx, dword [esi + 0x24]
call fcn.00403ab0
test al, al
je 0x40c36c
lea ecx, [esi + 0x27c]
call fcn.00622637
push eax
lea ecx, [ebp - 0x28]
call fcn.00406dc0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
mov ecx, dword [esi + 0x24]
call fcn.00403bf0
test al, al
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
sete bl
cmp eax, 8
jb 0x40c233
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409480
test bl, bl
jne 0x40c36c
mov edx, dword [esi + 0x288]
mov eax, edx
mov ecx, dword [esi + 0x28c]
or eax, ecx
je 0x40c27e
cmp ecx, dword [esi + 0x294]
jb 0x40c27e
ja 0x40c25f
cmp edx, dword [esi + 0x290]
jb 0x40c27e
sub esp, 0x10
lea ecx, [ebp - 0x2d8]
push 0x30
push 0
push 0x8205f4
push dword [esi + 0x24]
call fcn.0041cd30
jmp 0x40c36c
lea ecx, [esi + 0x27c]
call fcn.00622637
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c2cc
push eax
lea ecx, [esi + 0x27c]
call fcn.00622637
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x40c2cc
sub esp, 0x10
lea ecx, [ebp - 0x2d8]
push 0x30
push 0
push 0x82061c
push dword [esi + 0x24]
call fcn.0041cd30
jmp 0x40c36c
lea ecx, [esi + 0x27c]
call fcn.00622637
push eax
lea ecx, [ebp - 0x28]
call fcn.00406dc0
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 2
call fcn.00411bf0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
mov ecx, dword [eax]
call fcn.004127a0
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x2dc]
test edi, edi
je 0x40c32d
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x40c32d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x40c32d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00406d00
mov ecx, dword [esi + 0x24]
xor dl, dl
call fcn.004041f0
mov ecx, dword [esi + 0x264]
test ecx, ecx
je 0x40c35a
mov eax, dword [ecx]
push 1
push 0
push ecx
call dword [eax + 0x8c]
mov ecx, dword [esi + 0x268]
test ecx, ecx
je 0x40c36c
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0x14]
lea ecx, [ebp - 0x2d8]
call fcn.0041cc50
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.004ccd8f
mov esp, ebp
pop ebp
ret
Function at 0x40c3a0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748a90
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x8606e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x81fcb8
lea edi, [esi + 0x27c]
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.0040af20
push 0x81ff44
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
call fcn.0040af20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00434a07
lea ecx, [ebp - 0x24]
call fcn.00622637
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c473
lea ecx, [ebp - 0x3c]
call fcn.004348f5
push 0x81ff44
push str._c_Start______s_
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
push ecx
push eax
call fcn.0043516e
add esp, 0x10
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00434a07
push 0
mov ecx, edi
call fcn.00622637
push eax
lea ecx, [ebp - 0x18]
call fcn.00622637
push eax
push 0x820184
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00434a07
mov eax, dword [esi]
push 0
push 0
push 0x10
push esi
call dword [eax + 0xb4]
lea ecx, [ebp - 0x24]
call fcn.00434a07
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748cab
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x8606e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x430]
call fcn.004348f5
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push eax
push 0x11
push 0
mov dword [ebp - 0x424], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0062ff20
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0062ff20
mov eax, dword [esi + 0x24]
add esp, 0x18
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x450]
push eax
mov dword [ebp - 0x444], 0x820888
mov dword [ebp - 0x440], 0x53
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x40d11e
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40d112
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x430]
call fcn.00434ac7
push dword [ebp - 0x424]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x430]
push eax
call fcn.00434232
test eax, eax
jne 0x40d13e
push 1
lea eax, [ebp - 0x430]
mov ecx, esi
push eax
call fcn.0040ca00
lea ecx, [ebp - 0x430]
call fcn.00434a07
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret

Function at 0x40d8c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add dword [ebp + 8], 4
pop ebp
jmp fcn.0043e01e

Function at 0x40f140
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x8606e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0062ff20
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0062f0da
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret
Function at 0x40f950
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.GuGuaiOnlyOneGuGuaiInstall.exe
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40f97e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40f977
mov al, 1
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x821278
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x40f9bb
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40f9a0
push 1
jmp 0x40f9a2
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
xor al, al
pop esi
ret
push 0x30
push 0x82128c
push 0x821298
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop esi
ret

Function at 0x413950
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7496b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x8606e0]
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 esi, edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp + 0xc]
mov edx, 0x19
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
call fcn.00413d20
push 1
push 0x81fcb8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040a8d0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00409660
push 4
push str..lnk
lea ecx, [ebp - 0x28]
call fcn.0040a8d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
push edi
push ebx
push dword [ebp - 0x2c]
call fcn.00413a30
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov bl, al
cmp ecx, 8
jb 0x413a07
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00409480
mov al, bl
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.004ccd8f
mov esp, ebp
pop ebp
ret
Function at 0x413d20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x8606e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
mov edi, ecx
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], edi
push 0
push eax
mov esi, edx
mov dword [ebp - 0x210], 0
call fcn.0062ff20
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x413dc2
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
je 0x413dc2
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00406dc0
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [edi + 0x14], 7
xor ecx, ebp
mov dword [edi + 0x10], 0
mov word [edi], ax
mov eax, edi
pop edi
pop esi
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret