joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401240
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rol eax, 0x69
rcr ebx, 0x9c
imul eax
inc eax
rol ebx, 0xf2
sub eax, 0xe4
rcr edi, 9
and edx, 0x4c
rol ebx, 0xac
and eax, 0x2c
or edx, 0x99
dec esi
bswap edx
sub edx, 0x63
ror esi, 0x53
neg edi
dec ebx
imul eax
mov edi, 0x27
inc ebx
or edx, 0x31
inc ebx
imul edx
and edi, 0x96
not eax
neg eax
neg esi
inc edx
inc esi
mov esi, 0xf0
dec eax
rol eax, 0xaf
dec esi
not ebx
inc eax
bswap eax
or edi, 0x8b
mov esi, 0x6e
rcr eax, 0xea
sub esi, 0x51
or edi, 0xa8
and ebx, 0x7a
mov esi, 0xf9
or edx, 0x7b
mov eax, 0x86
or ebx, 0xd8
sub esi, 0xd7
neg eax
not ebx
imul edx
xor ecx, ecx
xor edi, edi
sbb esi, 0x16
add edx, 0x34
ror edi, 0x99
mov eax, 0xff
neg ebx
dec eax
sub ebx, 0x1d
bswap esi
mov esi, 0x3b
imul edx
neg edi
imul ebx
dec eax
neg esi
add esi, 0x89
sub edi, 0x86
mov esi, 0xc0
sub edi, 0xe0
dec edi
ror edi, 0x3a
add eax, 0x99
neg edi
dec ebx
bswap edx
or eax, 0xd0
inc esi
rol edx, 0xe1
and edx, 0x55
bswap eax
and edi, 0xf9
bswap eax
rcl ebx, 0xd6
imul ebx
sbb esi, 0x6b
ror esi, 0xad
rcl edx, 0x80
mov eax, 0x4b
bswap edi
sbb esi, 0xb3
inc ebx
inc ebx
imul edi
rcr edx, 0xc8
add esi, 0x9e
inc eax
ror ebx, 0x4b
sub ebx, 0xf9
ror edx, 0x65
sub esi, 0x5f
and edx, 0x12
mov ecx, dword [ebp + 0xc]
and esi, 7
bswap edx
dec eax
inc eax
ror esi, 0x7e
not ebx
rol esi, 0xb2
dec eax
not esi
ror eax, 0x59
sub ebx, 0x85
bswap edx
bswap edx
inc edi
bswap eax
inc ebx
sub edx, 0x3b
sbb eax, 0xc7
dec ebx
dec esi
add eax, 0x85
add ebx, 0xc6
rcl edx, 0x5e
add edx, 0x26
bswap esi
rcl edi, 0x6c
sbb eax, 0x35
neg edx
mov ebx, 0xe4
sbb edi, 0xed
imul eax
rcl eax, 0xe8
and edx, 0x1b
not ebx
sub ebx, 0x4b
and ebx, 0xc8
bswap eax
inc esi
sbb edi, 0xa3
rcl edi, 0x39
dec eax
rol edi, 0xa5
not ebx
imul edi
not esi
rcl eax, 0x2d
inc edi
sub edx, 0x7d
sbb esi, 0xdf
dec eax
mov edi, dword [ebp + 8]
mov ebx, ebx
mov esi, esi
mov eax, eax
not byte [edi]
mov eax, esi
mov ebx, ebx
mov eax, eax
xor eax, eax
mov esi, esi
xor eax, ebx
xor esi, eax
xor esi, eax
mov ebx, eax
add byte [edi], 0x79
xor eax, ebx
mov ebx, eax
mov eax, esi
xor ebx, ebx
xor eax, ebx
xor esi, esi
xor eax, eax
xor ebx, esi
mov esi, esi
sub byte [edi], 0x30
xor ebx, ebx
mov esi, eax
mov eax, eax
mov ebx, ebx
xor ebx, ebx
xor ebx, ebx
xor eax, ebx
mov esi, ebx
xor eax, eax
imul byte [edi]
inc edi
loop 0x40140d
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404315
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x462fd0]
jne 0x40431f
repz ret
jmp fcn.00406095
Function at 0x4049a6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403741
and dword [ebp - 4], 0
cmp dword [0x463e68], 0
mov ebx, eax
jne 0x404a57
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404b08
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404b08
push eax
call fcn.004036cf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x463e68], eax
call esi
push eax
call fcn.004036cf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x463e6c], eax
call esi
push eax
call fcn.004036cf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x463e70], eax
call esi
push eax
call fcn.004036cf
pop ecx
mov dword [0x463e78], eax
test eax, eax
je 0x404a57
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004036cf
pop ecx
mov dword [0x463e74], eax
mov eax, dword [0x463e74]
cmp eax, ebx
je 0x404aaf
cmp dword [0x463e78], ebx
je 0x404aaf
push eax
call fcn.0040374a
push dword [0x463e78]
mov esi, eax
call fcn.0040374a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404aaf
test edi, edi
je 0x404aaf
call esi
test eax, eax
je 0x404aa6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404aa6
test byte [ebp - 0xc], 1
jne 0x404aaf
or dword [ebp + 0x10], 0x200000
jmp 0x404ae8
mov eax, dword [0x463e6c]
cmp eax, ebx
je 0x404ae8
push eax
call fcn.0040374a
pop ecx
test eax, eax
je 0x404ae8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404ae8
mov eax, dword [0x463e70]
cmp eax, ebx
je 0x404ae8
push eax
call fcn.0040374a
pop ecx
test eax, eax
je 0x404ae8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x463e68]
call fcn.0040374a
pop ecx
test eax, eax
je 0x404b08
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404b0a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408db0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
inc ebp
adc byte [ebx], dh
inc edx
test eax, eax
push esi
xchg ebp, eax
ror dword [ecx + 0x4d8bfc4d], 0xc
pop esp
stc
inc eax
push esi
jg 0x409003
je 0x408fdb
dec ecx
cmp ecx, 0xf
ja 0x4090de
xor edx, edx
mov dl, byte [ecx - 0x7df66ef0]
jmp dword [edx*4 + 0x654017f8]
xor eax, eax
or dword [ebx + 0xcfd5de5], 0
and al, 0xfd
mov dword [eax + edi - 0x74a13fcd], esi
in eax, 0x5d
inc ebp
sub dword [edx + 0x3308758b], ebx
leave
xchg byte [esi + 0x38], dl
and edx, 0xffffffce
cmp dl, 4
sete cl
cmp ebx, dword [edx + 0x74]
aam 0x8b
inc esi
add al, 0x8d
push ebp
cld
push 0xffffffffffffff8d
push edx
push 0xf
push 0x2010ffff
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
push edi
clc
dec dword [edi]
or dword [ebx], ebp
add dword [eax], eax
add byte [ebx], ch
inc ebp
sub al, byte [ebp + 0x38461229]
push cs
or al, 4
mov dword [esi + 0x38], eax
sub eax, 0xe58b5ec0
das
ret 0xc
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x10]
out dx, al
add al, 0x51
mov eax, dword [edx + 4]
push 0x1001
push 0xffff
push eax
call dword [0x40dd27]
inc dword [eax]
add byte [eax - 1], dl
adc eax, 0x40dd27
cmp eax, 0xffffffff
jne 0x408e31
jmp 0x408fee
cmp ecx, 0xf84000
cmpxchg edi, eax
and dword [eax], eax
add byte [edi], cl
ljmp 0xf981
mov eax, 0x996d16
pop esi
mov esp, ebp
test edx, eax
or al, 0
enter 0x1187, 1
add byte [esi - 0x75], bl
in eax, 0x5d
ret 0xd10c
Function at 0x4068d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5067bb
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x551580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5576a8]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x406a8d
push str.QuickSeeBase.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x5576a8], eax
test eax, eax
jne 0x406a8d
push eax
push 0x104
lea ecx, [ebp - 0x230]
call fcn.00404cd0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, eax
test ecx, ecx
jne 0x40698c
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.00405280
jmp 0x406a72
mov eax, dword [ebp - 0x220]
cmp ecx, eax
ja 0x4069b8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], ecx
cmovae eax, dword [ebp - 0x230]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4069c8
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x230]
call fcn.004089b0
movups xmm0, xmmword [ebp - 0x230]
xor eax, eax
lea ecx, [ebp - 0x230]
mov word [ebp - 0x230], ax
movups xmmword [ebp - 0x248], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [ebp - 0x238], xmm0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
call fcn.00405280
cmp dword [ebp - 0x238], 0
jbe 0x406a72
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.QuickSeeBase.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5576a8], eax
lea ecx, [ebp - 0x248]
call fcn.00405280
mov eax, dword [0x5576a8]
test eax, eax
jne 0x406a8d
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b31f
mov esp, ebp
pop ebp
ret
Function at 0x40a160
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506b16
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x551580]
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, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x40a19c
xor eax, eax
jmp 0x40a205
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004cfda0
add esp, 0xc
call fcn.0040a8d0
push str.QuickSeeTray.exe
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x40a221
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x21c]
call fcn.0040b940
push edi
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
push 0x513468
lea ecx, [ebp - 0x21c]
call fcn.0040d070
lea ecx, [ebp - 0x21c]
mov ebx, eax
call fcn.0040c550
mov eax, ebx
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.0043b31f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x220]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a203
call fcn.00406c40
mov ecx, eax
test ecx, ecx
je 0x40a33d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x218]
test edi, edi
je 0x40a28f
push edi
push eax
lea eax, [ebp - 0x21c]
push 0x5134dc
push eax
call fcn.0040a460
add esp, 0x10
jmp 0x40a2a4
push eax
lea eax, [ebp - 0x21c]
push 0x5134ec
push eax
call fcn.0040a460
add esp, 0xc
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 4], 1
mov edi, dword [esi - 0xc]
jle 0x40a2c5
push edi
lea ecx, [ebp - 0x21c]
call fcn.0040a3e0
mov esi, dword [ebp - 0x21c]
lea eax, [edi + edi]
push eax
push esi
push 1
push 0
push 0x513468
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esi - 8]
mov ebx, eax
push esi
call fcn.004d6855
add esp, 8
test eax, eax
js 0x40a333
cmp eax, dword [esi - 8]
jg 0x40a333
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40a203
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a203
push 0x80070057
call fcn.00405910
push 0x80004005
call fcn.00405910
int3
Function at 0x40ad30
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 0x40ad89
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40ad89
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 0x40ad7a
cmp esi, edx
jae 0x40ad89
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40ad68
cmp esi, edx
jae 0x40ad89
cmp word [esi], 0
je 0x40ad89
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4112d0
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1062c
call fcn.0043b340
mov eax, dword [0x551580]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x414]
xor esi, esi
push eax
push 0x551200
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp dword [0x551214], esi
je 0x4113a2
push ebx
push str.ntdll.dll
mov dword [ebp - 0x10628], esi
xor ebx, ebx
mov dword [ebp - 0x1062c], esi
mov dword [ebp - 0x10624], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x41139b
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41136b
lea ecx, [ebp - 0x10624]
push ecx
lea ecx, [ebp - 0x1062c]
push ecx
lea ecx, [ebp - 0x10628]
push ecx
call eax
movzx eax, word [ebp - 0x10624]
lea ebx, [esi + 1]
mov dword [ebp - 0x10624], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x41139b
mov eax, dword [ebp - 0x10628]
cmp eax, 6
jne 0x41138c
cmp dword [ebp - 0x1062c], 4
je 0x411391
jmp 0x41139b
cmp eax, 0xa
jb 0x41139b
mov dword [0x5578e4], 1
mov dword [0x551214], esi
pop ebx
cmp dword [0x5578e4], esi
je 0x4113b6
mov edi, reloc.OLEAUT32.dll_SysReAllocString
mov eax, str.SOFTWAREClassesCLSID_sInprocServer32
jmp 0x4113c0
mov edi, SysReAllocString
mov eax, str.CLSID_sInprocServer32
lea ecx, [ebp - 0x414]
push ecx
push eax
lea eax, [ebp - 0x620]
push 0x104
push eax
call fcn.00411cc0
add esp, 0x10
call fcn.00411500
movzx eax, al
lea ecx, [ebp - 0x1062c]
neg eax
mov dword [ebp - 0x1062c], esi
push ecx
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x620]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4114ea
mov edi, dword [ebp - 0x1062c]
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004cfda0
add esp, 0xc
mov dword [ebp - 0x10628], 0x208
lea eax, [ebp - 0x10628]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x10624]
push eax
push 0
push 0x5129c0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4114df
mov eax, dword [ebp - 0x10624]
cmp eax, 1
je 0x411474
cmp eax, 2
jne 0x4114df
mov eax, dword [ebp - 0x10628]
test eax, eax
je 0x411490
test al, 1
jne 0x4114df
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], si
je 0x411499
jmp 0x4114df
xor eax, eax
mov word [ebp - 0x20c], ax
push 0xfffe
lea eax, [ebp - 0x10620]
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x10620]
push 0x7ffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x10620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 1
cmovne esi, ecx
test edi, edi
je 0x4114ea
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0043b31f
mov esp, ebp
pop ebp
ret
Function at 0x411600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50740b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x551580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push 0x513f64
push eax
call esi
call fcn.00411500
test al, al
mov edx, str.QsShell.dll
mov ecx, str.QsShell64.dll
lea eax, [ebp - 0x218]
cmove ecx, edx
push ecx
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4117d0
mov eax, dword [0x557670]
test al, 1
jne 0x4116e9
or eax, 1
mov dword [0x557670], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x510f50
mov dword [0x557664], 0x512994
mov dword [0x557668], eax
mov byte [0x55766c], 0
call fcn.0043b30a
mov eax, dword [0x557670]
add esp, 4
test al, 2
jne 0x411745
or eax, 2
mov dword [0x557674], 0x512914
mov dword [0x557670], eax
xor eax, eax
push 0x510f80
mov dword [0x557678], 0x557664
mov dword [0x557688], 2
mov dword [0x557680], 0
mov dword [0x557684], 0
mov dword [0x55768c], eax
mov dword [0x55767c], 0x557674
call fcn.0043b30a
add esp, 4
mov eax, dword [0x557674]
mov ecx, 0x557674
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x218]
push eax
mov ecx, str._u__s___s_
mov dword [ebp - 4], 0
mov eax, 0x5134dc
cmove eax, ecx
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040a460
mov esi, dword [ebp - 0x21c]
push 0
push 0
push 0
push 0x1388
push 1
push 0
push esi
push str.regsvr32.exe
push 0
call fcn.00433860
add esp, 0x30
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4117cb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b31f
mov esp, ebp
pop ebp
ret 4
Function at 0x412bc0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507669
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x551580]
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
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], esi
call fcn.00406c40
mov ecx, eax
test ecx, ecx
je 0x412d2d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
call fcn.00406c40
mov ecx, eax
test ecx, ecx
je 0x412d37
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x412c9b
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x514074
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.0040abd0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x513468
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412cf2
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x514074
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 4]
call fcn.0040abd0
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.0043b31f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405910
push 0x80004005
call fcn.00405910
int3

Function at 0x412d50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5076a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x551580]
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 - 0x30]
mov dword [ebp - 0x34], esi
xorps xmm0, xmm0
push dword [ecx]
movups xmmword [ebp - 0x30], xmm0
push 0xf
push eax
push 0x514174
push str.ActiveCreatShortcut
push str.Default
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.00406c40
mov ecx, eax
test ecx, ecx
je 0x412e00
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
mov ecx, esi
test eax, 0xffff0000
jne 0x412ddc
movzx eax, ax
push eax
call fcn.0040a980
jmp 0x412de2
push eax
call fcn.0040abd0
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.0043b31f
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00405910
int3
Function at 0x413380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x120c
call fcn.0043b340
mov eax, dword [0x551580]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.QuickSeeImg.exe
push dword [esi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
call esi
push 0x800
lea eax, [ebp - 0xa0c]
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0xa0c]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x120c]
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0xa0c]
push 0x51429c
push eax
lea eax, [ebp - 0x120c]
push eax
call esi
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x120c]
push eax
push str.__fromdesktop
lea eax, [ebp - 0x20c]
push eax
push 0x513468
call fcn.00413b80
mov ecx, dword [ebp - 4]
add esp, 0x1c
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.0043b31f
mov esp, ebp
pop ebp
ret

Function at 0x413460
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x551580]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x208
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x414]
push str.QuickSeeImg.exe
push dword [esi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
call esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x513468
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4134fe
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x51429c
push eax
lea eax, [ebp - 0xc14]
push eax
call esi
push 0
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc14]
push eax
push str.__fromstartmenu
lea eax, [ebp - 0x414]
push eax
push 0x513468
call fcn.00413b80
mov ecx, dword [ebp - 4]
add esp, 0x1c
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.0043b31f
mov esp, ebp
pop ebp
ret
Function at 0x413570
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x551580]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x513468
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4135e2
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x5142fc
push eax
lea eax, [ebp - 0xc14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x414]
push str.uninst.exe
push dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 1
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc14]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push 0x514334
call fcn.00413b80
mov ecx, dword [ebp - 4]
add esp, 0x1c
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
pop edi
call fcn.0043b31f
mov esp, ebp
pop ebp
ret