joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2a30690
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x2a3086b
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x2a306ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x2a306c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2a306b0
mov eax, 1
add ebx, ebx
jne 0x2a306d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x2a306c8
jne 0x2a306e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x2a306c8
xor ecx, ecx
sub eax, 3
jb 0x2a306f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x2a3076a
mov ebp, eax
add ebx, ebx
jne 0x2a30703
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x2a30710
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x2a30734
inc ecx
add ebx, ebx
jne 0x2a30720
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x2a30715
jne 0x2a30731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x2a30715
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x2a30754
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x2a30745
jmp 0x2a306b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x2a30754
add edi, ecx
jmp 0x2a306b6
pop esi
mov edi, esi
mov ecx, 0xb000
jmp 0x2a307a6
mov al, byte [edi]
add edi, 1
cmp al, 0x80
jb 0x2a30787
cmp al, 0x8f
ja 0x2a30787
cmp byte [edi - 2], 0xf
je 0x2a3078d
sub al, 0xe8
cmp al, 1
ja 0x2a307b0
cmp byte [edi], 1
jne 0x2a307b0
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
mov dword [edi], eax
add edi, 4
sub ecx, 4
mov al, byte [edi]
add edi, 1
loop 0x2a30787
sub ecx, 1
jg 0x2a30774
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x2a307fd
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x103fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1044c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x2a307bb
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10450]
or eax, eax
je 0x2a307f7
mov dword [ebx], eax
add ebx, 4
jmp 0x2a307d8
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x2a3082e
cmp al, 0xef
ja 0x2a30821
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x2a30803
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x2a30810
mov ebp, dword [esi + 0x10454]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x2a30862
sub esp, 0xffffff80
jmp 0x2a21baf
Function at 0x4014d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4014eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401522
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40151e
jmp 0x401510
cmp esi, eax
jae 0x401522
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401510
cmp esi, eax
jb 0x401529
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4017f0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x588fc8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp + 8]
sub eax, 0
je 0x4018e2
dec eax
jne 0x401912
push 0x103
push eax
lea edx, [ebp - 0x107]
push edx
mov byte [ebp - 0x108], al
call fcn.0050f220
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401877
mov ecx, dword [str._tray]
mov dx, word [0x53c814]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
jmp 0x4018a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018a0
mov ecx, dword [ebp - 0x10c]
sub eax, edx
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.btsearcher
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e65d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10c]
push 0
push 0
push 0
push 0
push str.btsearcher
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401912
mov ecx, dword [ebp - 0x10c]
push str.btsearcher
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e65d
mov esp, ebp
pop ebp
ret
Function at 0x401920
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x588fc8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100
lea eax, [ebp - 0x104]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x104]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401956
mov ecx, dword [str._btSearcher]
mov edx, dword [0x53c84c]
mov dword [eax], ecx
mov ecx, dword [0x53c850]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, esi
mov ecx, esi
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401980
lea edi, [ebp - 0x104]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401990
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x104]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 4]
cmp eax, 0xffffffff
setne al
pop edi
xor ecx, ebp
pop esi
call fcn.0050e65d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4019f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401a5b
mov edx, dword [ebp + 0x10]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a27
mov ecx, dword [ebp - 4]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
test eax, eax
je 0x401a69
push 0
push 0
push str.Write_Reg_Error
call fcn.004135fd
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.Reg_Error
call fcn.004135fd
mov esp, ebp
pop ebp
ret
Function at 0x401a70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x588fc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.USER32.dll_CharLowerBuffA]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401b1a
lea edx, [ebp - 0x230]
push edx
push esi
mov dword [ebp - 0x230], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401b13
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea esp, [esp]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call edi
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push edx
call ebx
test eax, eax
je 0x401b2e
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401ae0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e65d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050e65d
mov esp, ebp
pop ebp
ret
Function at 0x403f00
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c85c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x588fc8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
push eax
push 0x66
call fcn.004199e7
xor ebx, ebx
lea ecx, [esi + 0x94]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CBtsearcherDlg.0
call fcn.00414eeb
mov dword [esi + 0x94], vtable.CWebBrowser2.0
mov byte [ebp - 4], 1
call fcn.00420ad8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x403f74
push 0x80004005
call fcn.00401410
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x110], eax
push 0x53cab0
push 0x53caa4
push str.SoftwareVB_and_VBA_Program_Settings_bts_settings
mov byte [ebp - 4], 2
call fcn.004019f0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.btsearcher.exe
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404037
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp + 8]
call fcn.00403e40
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 3
cmp dword [ecx - 0xc], ebx
jl 0x403ff7
push str.uninstall
push ecx
call fcn.0050f44b
add esp, 8
cmp eax, ebx
je 0x403ff7
sub eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x404014
push 0x53cc1c
push 0x53caa4
push str.SoftwareVB_and_VBA_Program_Settings_bts_settings
call fcn.004019f0
add esp, 0xc
push ebx
call fcn.00410828
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404037
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0041ea2f
call fcn.0041ea2f
mov eax, dword [eax + 0xc]
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esi + 0x108], eax
mov word [esi + 0x10e], bx
mov byte [esi + 0x10c], bl
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 4
Function at 0x404130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c8d6
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x588fc8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
push 0x100
lea edx, [ebp - 0x110]
push edx
push str.APPDATA
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x110]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404193
mov ecx, dword [str._btSearcher]
mov edx, dword [0x53c84c]
mov dword [eax], ecx
mov ecx, dword [0x53c850]
mov dword [eax + 4], edx
lea edx, [ebp - 0x110]
mov dword [eax + 8], ecx
push edx
lea ecx, [ebp - 0x114]
call fcn.00403e40
push esi
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], 0
call fcn.00403e40
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.00402fc0
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404216
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x11c]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x114]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40425b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050e65d
mov esp, ebp
pop ebp
ret
Function at 0x404280
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c8d6
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x588fc8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push 0x100
lea edx, [ebp - 0x110]
push edx
push str.APPDATA
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x110]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4042e3
mov ecx, dword [str._btSearcher]
mov edx, dword [0x53c84c]
mov dword [eax], ecx
mov ecx, dword [0x53c850]
mov dword [eax + 4], edx
lea edx, [ebp - 0x110]
mov dword [eax + 8], ecx
push edx
lea ecx, [ebp - 0x114]
call fcn.00403e40
push esi
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], 0
call fcn.00403e40
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.00402fc0
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404366
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0x11c]
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x114]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4043b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050e65d
mov esp, ebp
pop ebp
ret

Function at 0x404470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x588fc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0xc7
lea eax, [ebp - 0xcb]
push 0
mov dword [ebp - 0xd0], 0
push eax
mov byte [ebp - 0xcc], 0
call fcn.0050f220
add esp, 0xc
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0xd0]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push SysReAllocString
mov dword [ebp - 0xd4], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [ebp - 0xd0]
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xcc]
push ecx
push 0
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xcc]
push eax
mov ecx, esi
call fcn.00403e40
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050e65d
mov esp, ebp
pop ebp
ret
Function at 0x405840
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x588fc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f1
mov esi, ecx
call fcn.0041c305
mov edi, eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [ebp - 0x1c]
push 0
push 0
push 0
push 0
push str.btsearcher
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x4058b6
mov eax, dword [edi + 0x20]
push 0
push 1
push 0xf1
push eax
call ebx
push 0x3f5
mov ecx, esi
call fcn.0041c305
push 0x14
lea ecx, [ebp - 0x18]
push ecx
push str._setting.ini
mov esi, eax
xor eax, eax
push str.displaySetting
push str.HomePage
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call fcn.00404280
lea eax, [ebp - 0x18]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405900
sub eax, edx
je 0x405930
push 0x14
lea edx, [ebp - 0x18]
push 0x53cec8
push edx
call fcn.00510b3b
add esp, 0xc
test eax, eax
jne 0x405930
push eax
mov eax, dword [esi + 0x20]
push 1
push 0xf1
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0050e65d
mov esp, ebp
pop ebp
ret
Function at 0x406d10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cd13
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x588fc8]
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
cmp dword [ebp + 8], 0x465
mov esi, ecx
jne 0x406f27
movzx eax, word [ebp + 0x10]
sub eax, 0x202
je 0x406e1e
sub eax, 3
jne 0x406f27
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], vtable.CMenu.0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
call fcn.0041ea2f
mov eax, dword [eax + 0xc]
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004201c0
test eax, eax
je 0x406e03
mov eax, dword [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.0042018b
lea ecx, [ebp - 0x34]
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp byte [esi + 0x10f], bl
je 0x406dd6
mov edx, dword [edi + 4]
push 0x53d0e8
push 0x800e
push ebx
push 0x800e
push edx
jmp 0x406dea
mov eax, dword [edi + 4]
push 0x53d0dc
push 0x800e
push ebx
push 0x800e
push eax
call dword [sym.imp.USER32.dll_ModifyMenuA]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
push ebx
push esi
push ecx
push edx
push 2
mov ecx, edi
call fcn.004150e9
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.CMenu.0
call fcn.0042021a
jmp 0x406f27
xor ebx, ebx
cmp byte [esi + 0x10e], bl
je 0x406ef9
push 0x142
call fcn.00410607
add esp, 4
cmp eax, ebx
je 0x406e5a
push str.activate
push 0x1bb
push str._client_report_
push str.happygolife.com
mov ecx, eax
call fcn.00401580
jmp 0x406e5c
xor eax, eax
lea ecx, [ebp - 0x38]
push ecx
push ebx
push eax
push 0x405f70
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x14
lea edx, [ebp - 0x24]
push edx
push str._setting.ini
mov edi, eax
xor eax, eax
push str.displaySetting
push str.HomePage
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
call fcn.00404280
push 0x14
lea eax, [ebp - 0x24]
push 0x53cedc
push eax
call fcn.00510b3b
add esp, 0x20
test eax, eax
jne 0x406ee9
lea ecx, [ebp - 0xcc]
call fcn.004016c0
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 1
call fcn.0041a15a
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.00419927
cmp edi, ebx
jne 0x406ef9
push ebx
push ebx
push str.Log_Error
call fcn.004135fd
cmp byte [esi + 0x10f], bl
je 0x406f17
mov ecx, dword [esi + 0x110]
push ebx
push ebx
push ebx
push ebx
push ecx
lea ecx, [esi + 0x94]
call fcn.00410550
push 5
mov ecx, esi
call fcn.0041c4e6
mov word [esi + 0x10e], bx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00413efc
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.0050e65d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409180
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jg 0x409198
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea ecx, [ebp - 4]
push ecx
push 0x20006
push 0
push str.SoftwareTENCENTQQBrowserLaunch
push SysReAllocString
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x409203
mov eax, dword [ebp - 4]
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push str.LaunchOpenPageType
push eax
mov dword [ebp - 8], 1
call edi
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push str.MainPageType
push edx
mov dword [ebp - 8], 2
call edi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
push ecx
push 0x20006
push 0
push str.SoftwareTENCENTQQBrowserCommon
push SysReAllocString
call ebx
test eax, eax
jne 0x40925a
mov eax, dword [esi + 4]
cmp dword [eax - 4], 1
mov ebx, dword [eax - 0xc]
jle 0x409233
push ebx
lea ecx, [esi + 4]
call fcn.00401f00
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 4]
push ebx
push eax
push 1
push 0
push str.MainPageDIY
push ecx
call edi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4097f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d07b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x588fc8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0052c286
push 4
mov dword [ebp - 4], 0
call fcn.00410607
mov edi, eax
add esp, 4
test edi, edi
je 0x409870
call fcn.0052bf4c
mov dword [edi], eax
call fcn.0052bd0b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0052bc40
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x409866
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0052bc68
jmp 0x409872
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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