joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40527f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4052be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4052be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4052be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4052be
cmp dword [ecx + 0x74], 0xe
jbe 0x4052be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4115eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4225c8
push 0x4225c0
push str.FlsAlloc
push 0x1f
call fcn.004114aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41161f
push dword [ebp + 8]
mov ecx, esi
call dword [0x420184]
call esi
jmp 0x411625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4225d8
push 0x4225d0
push str.FlsGetValue
push 0x21
call fcn.004114aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4116a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x420184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4116a8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4225e0
push 0x4225d8
push str.FlsSetValue
push 0x22
call fcn.004114aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4116e2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x420184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4150ce
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41516b
push ebx
push esi
call fcn.00415097
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041502b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415118
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41516a
push edi
push eax
call fcn.00412757
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415138
call fcn.0041133d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415169
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041502b
add esp, 0x20
test eax, eax
jne 0x415157
push edi
call fcn.0041133d
jmp 0x41515f
push ebx
call fcn.0041133d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41b9c5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041b941
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41bb34
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41bb34
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41bae9
jg 0x41ba21
test eax, eax
je 0x41badf
push 1
push 0x1000
call fcn.004112e0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41ba44
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41bad6
push 0x8000
push ebx
call fcn.0040f9ac
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41ba6d
jg 0x41ba68
cmp ecx, 0x1000
jb 0x41ba6d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004183b3
add esp, 0x10
cmp eax, 0xffffffff
je 0x41bab2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41ba68
jl 0x41ba99
test ecx, ecx
jne 0x41ba5a
push dword [ebp - 0xc]
push ebx
call fcn.0040f9ac
push esi
call fcn.0041133d
add esp, 0xc
xor ebx, ebx
jmp 0x41bb42
cmp byte [edi + 0x24], 0
je 0x41bac9
cmp dword [edi + 0x20], 5
jne 0x41bac9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41bad4
mov ebx, dword [edi + 0x18]
jmp 0x41bad6
xor ebx, ebx
push esi
call fcn.0041133d
pop ecx
jmp 0x41bb42
test ecx, ecx
jg 0x41baab
jl 0x41bae9
test eax, eax
jae 0x41baab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c6c4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41bb09
cmp byte [edi + 0x1c], 0
je 0x41baab
jmp 0x41bb3a
push ebx
call fcn.0041590e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41baab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41bb42
cmp byte [edi + 0x1c], 0
je 0x41bb3f
mov ebx, dword [edi + 0x18]
jmp 0x41bb42
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041c6c4
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bb5c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42c0b0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bb9c
cmp byte [ebx], 0xa
jne 0x41bb9c
or byte [edi + eax + 0x28], 4
jmp 0x41bba1
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41bca0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41bc83
inc eax
cmp dl, 0xd
je 0x41bbcd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41bbf3
cmp eax, ecx
jae 0x41bc01
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41bbb5
jmp 0x41bca0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bc7e
cmp dword [ebp - 0x10], 0
je 0x41bc7e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42c0b0]
test byte [eax + edi + 0x28], 0x48
je 0x41bc58
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41bc43
mov byte [esi], dl
jmp 0x41bc54
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42c0b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bca0
cmp byte [ebp - 1], 0xa
jne 0x41bc67
cmp esi, ebx
jne 0x41bc67
mov byte [esi], 0xa
jmp 0x41bc9f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c6c4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bca0
mov byte [esi], 0xd
jmp 0x41bc9f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42c0b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bc9d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bca0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bca9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x42c0b0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bcef
cmp word [ebx], dx
jne 0x41bcef
or byte [eax + edi + 0x28], 4
jmp 0x41bcf4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41be57
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41be37
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41bd35
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bd6b
cmp eax, edx
jae 0x41bd79
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41bd10
jmp 0x41be57
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41be32
cmp dword [ebp - 0x18], 0
je 0x41be32
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42c0b0]
test byte [eax + edi + 0x28], 0x48
je 0x41be08
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41bdcc
mov word [esi], cx
jmp 0x41be03
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42c0b0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x42c0b0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42c0b0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41be57
pop eax
cmp word [ebp - 4], ax
jne 0x41be18
cmp esi, ebx
jne 0x41be18
mov word [esi], ax
jmp 0x41be54
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c6c4
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41be57
push 0xd
pop eax
jmp 0x41be13
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42c0b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41be51
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41be57
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e5e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e60d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e60d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4028fc
Capabilities:
Check os version

Disassembly:
mov eax, 0x41f961
call fcn.00417780
sub esp, 0x20c
push ebx
push esi
push edi
mov esi, ecx
push 1
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x448]
xor ebx, ebx
cmp eax, 1
mov dword [ebp - 4], ebx
jne 0x402934
push 0x76
jmp 0x402954
cmp eax, 2
jne 0x40293d
push 0x77
jmp 0x402954
cmp eax, 3
jne 0x402946
push 0x78
jmp 0x402954
cmp eax, 4
jne 0x402a52
push 0x96
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esi + 0x43c]
push esi
push dword [ebp - 0x10]
lea edi, [esi + 0x43c]
lea ecx, [ebp - 0x218]
push 0x1004
push eax
push ebx
push ebx
call sub.MFC42.DLL_CFileDialog::CFileDialog
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x402997
push 0x58
cmp al, 5
pop ecx
jae 0x40299a
push 0x4c
pop ecx
mov dword [ebp - 0x1b8], ecx
lea ecx, [ebp - 0x218]
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x402a25
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x218]
push eax
call sub.MFC42.DLL_CFileDialog::GetPathName
push dword [ebp - 0x1c]
mov eax, dword [edi]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
je 0x4029e0
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::operator_2
push ebx
mov ecx, esi
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CDialog::CDialog
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
jmp 0x402abb
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CDialog::CDialog
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, ebx
jmp 0x402abb
cmp eax, 5
jne 0x402a5c
push 1
pop ebx
jmp 0x402a42
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
push 0x79
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
push 0x67
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::LoadStringA
push ebx
mov ecx, esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40350d
Capabilities:
Create thread

Disassembly:
mov eax, 0x41fbfc
call fcn.00417780
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
cmp dword [esi + 0x130], ebx
lea edi, [esi + 0x130]
jne 0x4035dd
push 0x429c30
lea ecx, [ebp - 0x10]
call fcn.00417472
cmp dword [esi + 0x128], 5
mov dword [ebp - 4], ebx
jne 0x40356f
lea eax, [ebp - 0x14]
push eax
call fcn.0040d2b1
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40357e
lea eax, [esi + 0x14c]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator_2
push str.QQOneClick.dll
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
mov eax, dword [edi]
cmp eax, ebx
je 0x403599
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
push edi
push 0x422cd0
push 0x422cf0
mov ecx, esi
push dword [ebp - 0x10]
call fcn.0040346f
cmp eax, ebx
jne 0x4035d1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 0x422cc0
mov ecx, esi
call sub.MFC42.DLL_CCmdTarget::GetInterface
mov ecx, dword [esi + 0x128]
cmp ecx, 1
jne 0x40360c
mov ecx, dword [ebp + 8]
mov esi, dword [esi + 0x14c]
mov edi, dword [edi]
push eax
mov ecx, dword [ecx]
push esi
mov edx, dword [edi]
push 1
push ecx
push 0x67
jmp 0x403627
cmp ecx, 2
jne 0x403631
mov ecx, dword [ebp + 8]
mov esi, dword [esi + 0x14c]
mov edi, dword [edi]
push eax
mov ecx, dword [ecx]
push esi
mov edx, dword [edi]
push 1
push ecx
push 0x64
push edi
call dword [edx + 0x20]
test eax, eax
je 0x40365a
jmp 0x4035be
cmp ecx, 5
jne 0x4035be
lea eax, [esi + 0x170]
mov dword [esi + 0x16c], ebx
push eax
push ebx
push esi
push 0x402b40
push ebx
push ebx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x16c], eax
push 1
pop eax
jmp 0x4035c0
Function at 0x4048e7
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41fed8
call fcn.00417780
sub esp, 0x18
push esi
lea eax, [ebp - 0x18]
push edi
push eax
push 0x20019
push 0
push str.SoftwareTencentPlatForm_Type_List1
mov edi, ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40494d
mov esi, 0x104
push esi
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], 1
push ecx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
push eax
push 0
push str.TypePath
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404954
xor eax, eax
jmp 0x4049e4
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.0041738e
and dword [ebp - 4], 0
lea esi, [edi + 0x14c]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator_2
push 0x5c
mov ecx, esi
or edi, 0xffffffff
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40499e
mov edi, eax
inc eax
push eax
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::Find
jmp 0x40498a
inc edi
lea eax, [ebp - 0x24]
push edi
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator_2
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40804a
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x4205b0
call fcn.00417780
sub esp, 0x12c
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_3
push 0x105
lea eax, [ebp - 0x138]
push ebx
push eax
mov byte [ebp - 4], 1
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp + 8]
push dword [eax - 8]
push ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [ebp - 0x138]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp + 8]
push dword [eax - 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea eax, [ebp - 0x138]
push 1
mov dword [ebp - 0x28], eax
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1e], esi
push eax
mov word [ebp - 0x20], 0x614
mov dword [ebp - 0x1a], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x16], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x4080e7
xor esi, esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4086b7
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4206bf
call fcn.00417780
sub esp, 0x170
and dword [ebp - 0x1c], 0
push ebx
push 1
lea eax, [ebp + 0xc]
pop ebx
lea ecx, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_5
push 0x104
lea eax, [ebp - 0x17c]
push 0
push eax
mov byte [ebp - 4], 2
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x17c]
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4087de
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::MakeLower
lea eax, [ebp - 0x78]
push eax
call fcn.004164da
mov eax, dword [ebp - 0x10]
pop ecx
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00416518
add esp, 0xc
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x14]
push eax
push 0x10
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.0041706c
pop ecx
pop ecx
push 0x10
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea eax, [ebp - 0x14]
push eax
call fcn.00408814
pop ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
push dword [ebp - 0x14]
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x18]
push str._sQQ_s_
push eax
call sub.MFC42.DLL_CString::Format
lea eax, [ebp - 0x18]
push eax
call fcn.004088c0
add esp, 0x14
test eax, eax
jne 0x4087b5
lea eax, [ebp - 0x18]
push eax
call fcn.004088e0
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::CString_5
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
jmp 0x4087ed
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_5
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4088dc
test al, 0x10
je 0x4088dc
push 1
pop eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40bb28
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x420d70
call fcn.00417780
sub esp, 0x10
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x10]
pop ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push 0x20019
push esi
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40bc4e
mov esi, 0x104
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x1c]
push edi
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
jne 0x40bc4e
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0041738e
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [ebp - 0x10]
or esi, 0xffffffff
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40bbef
mov esi, eax
inc eax
push eax
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
jmp 0x40bbda
inc esi
lea eax, [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [ebp + 0x14]
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea eax, [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Mid
mov ecx, dword [ebp + 0x18]
push eax
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14