joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b6c0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x1fe
xor edi, edi
mov esi, eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
xor eax, eax
push edi
push ecx
mov word [ebp - 0x210], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
mov dword [ebp - 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x42b711
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0x497d4c
mov ecx, esi
call fcn.004069f0
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea edx, [eax + 2]
jmp 0x42b730
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x42b730
sub eax, edx
sar eax, 1
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
mov ebx, esi
call fcn.004064e0
push str.SoftwareClientsStartMenuInternet
lea ecx, [ebp - 4]
call fcn.00405690
push 0x11
push str.BaiduBrowser.EXE
lea ebx, [ebp - 4]
call fcn.004064e0
mov eax, dword [esi]
mov edx, dword [eax - 0xc]
push edx
push eax
call fcn.004064e0
push 0x20019
mov eax, ebx
push eax
push 0x80000002
lea esi, [ebp - 0xc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.004265e0
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp eax, edi
setne cl
mov esi, ecx
mov ecx, dword [ebp - 8]
cmp ecx, edi
je 0x42b7b1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], edi
cmp eax, edi
je 0x42b7bf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42b7de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b7f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
mov ecx, 0x4ae214
call edx
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_s
lea edi, [ebp - 8]
call fcn.00407650
add esp, 8
push 0x2001f
lea edx, [ebp - 8]
push edx
xor edi, edi
push 0x80000001
lea esi, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00426570
push str.BaiduBrowserHTML
lea ecx, [ebp - 0x10]
call fcn.00405690
push str.Progid
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00405690
mov edx, dword [ebp - 0x18]
cmp edx, edi
je 0x42b87b
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
mov eax, dword [eax]
add esi, esi
push esi
push ecx
push 1
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b89a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b8b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ecx, edi
je 0x42b8ce
push ecx
call ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
je 0x42b8e6
push eax
call esi
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x18], eax
cmp ecx, edi
je 0x42b8f3
push ecx
call ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x42b8fd
push eax
call esi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b91c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
mov ecx, 0x4ae214
call edx
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_sUserChoice
lea edi, [ebp - 8]
call fcn.00407650
add esp, 8
push 0x2001f
lea edx, [ebp - 8]
push edx
xor edi, edi
push 0x80000001
lea esi, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00426570
push str.BaiduBrowserHTML
lea ecx, [ebp - 0x10]
call fcn.00405690
push str.Progid
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00405690
mov edx, dword [ebp - 0x18]
cmp edx, edi
je 0x42b9bb
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
mov eax, dword [eax]
add esi, esi
push esi
push ecx
push 1
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b9da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b9f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ecx, edi
je 0x42ba0e
push ecx
call ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
je 0x42ba26
push eax
call esi
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x18], eax
cmp ecx, edi
je 0x42ba33
push ecx
call ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x42ba3d
push eax
call esi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ba5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d010
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
xor eax, eax
push 0x208
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov word [ebp - 0x27c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 8]
push edx
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push 0x80000002
mov dword [ebp - 0xc], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42d099
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push str.InstallDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42d0a0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, reloc.NETAPI32.dll_NetApiBufferFree
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [0x4afee8], 1
jne 0x42d0c4
or dword [0x4afee8], 1
mov dword [0x4afee4], 7
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d0d0
sub eax, edx
mov ecx, 0x104
sub ecx, dword [0x4afee4]
sar eax, 1
cmp eax, ecx
jge 0x42d099
push str.sdb.exe
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
push 0x40e
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
mov word [ebp - 0x68c], ax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
push 0x82
push edx
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push str.__s____s__id_u
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push 0x208
push ecx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
push 0x44
lea edx, [ebp - 0x6c]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0x30
xor eax, eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x6c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x3c], ax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42d1a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0x42d760
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x42d89d
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
and esi, 0x100
lea ecx, [ebp - 4]
push ecx
mov edx, esi
or edx, 0x40000
push edx
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42d888
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push eax
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x42d888
cmp dword [ebp + 0x14], eax
je 0x42d881
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
or esi, 0x20019
push esi
push 0
push edi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42d888
push eax
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp + 0xc]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x42d888
push 0x20a
call fcn.004928c4
xor edi, edi
add esp, 4
mov esi, eax
cmp dword [ebp + 0xc], edi
jbe 0x42d877
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, dword [ebp - 4]
push 0x105
push esi
push edi
push ecx
call ebx
test eax, eax
jne 0x42d86a
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push edx
push 1
push eax
push esi
push ecx
mov ecx, dword [ebp - 8]
call fcn.0042d760
jmp 0x42d871
cmp eax, 0x103
je 0x42d877
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x42d840
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov esi, 1
jmp 0x42d88b
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x42d899
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42e300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
cmp esi, eax
jne 0x42e31f
pop esi
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42e388
mov esi, dword [ebp + 0x10]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e340
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [ebp - 4]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x42e374
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push edi
push 0
push 0
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42e3ee
mov esi, dword [ebp + 0x10]
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e3b0
mov ecx, dword [ebp + 0xc]
sub eax, edx
mov edx, dword [ebp + 8]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ebp - 4]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x42e3e4
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42e400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
xor eax, eax
push 0x206
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov word [ebp - 0x214], ax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push 0x20019
xor esi, esi
push esi
push eax
push 0x80000001
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42e4b7
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
lea eax, [ebp - 0xc]
push eax
push esi
push str.Progid
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42e4b7
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push str.BaiduBrowserHTML
push edx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x42e49d
lea esi, [eax + 1]
jmp 0x42e4b7
test edi, edi
je 0x42e4b7
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push 0x104
push edi
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x42e4c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42fe10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x498b64
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
call fcn.00405690
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.Software_baiduBaiduBrowser
push 0x80000001
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42fed0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Software_baiduBaiduBrowser
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42ff1c
mov ecx, dword [ebp - 4]
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x49cb40
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x42ff1c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42feca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0
push 0x49cb40
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x42ff1c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42feca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ff3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
Function at 0x431e20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [esi + 0x14], eax
mov word [ebp - 0x1c], cx
mov dword [esi + 0x10], ecx
mov word [esi], dx
mov eax, dword [ebp - 0xc]
cmp eax, 0x104
jb 0x431e61
push 0xffffffffffffffff
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.0041ec90
jmp 0x431e73
mov ecx, 0x104
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00431cb0
mov eax, dword [ebp - 0x1c]
push ebx
mov ebx, 8
cmp dword [ebp - 8], ebx
jae 0x431e84
lea eax, [ebp - 0x1c]
push 0x104
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [esi + 0x10]
mov ecx, esi
cmp eax, 0x104
jb 0x431eaf
push 0xffffffffffffffff
push 0x104
call fcn.0041ec90
jmp 0x431ebe
mov edx, 0x104
push 0
sub edx, eax
push edx
call fcn.00431cb0
cmp dword [esi + 0x14], ebx
jb 0x431ec7
mov eax, dword [esi]
jmp 0x431ec9
mov eax, esi
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 8], ebx
jae 0x431ed4
lea ecx, [ebp - 0x1c]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x104
push eax
push ecx
call dword [sym.imp.MSVCR100.dll__wsplitpath_s]
add esp, 0x24
cmp dword [ebp - 8], ebx
pop ebx
jb 0x431f03
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov esp, ebp
pop ebp
ret
Function at 0x431f60
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
xor eax, eax
push esi
push edi
xor esi, esi
push 0x11c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push esi
push eax
mov dword [ebp - 4], esi
call sub.MSVCR100.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 0x11c
call edi
test eax, eax
jne 0x431fdc
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 0x114
call edi
test eax, eax
jne 0x431fdc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp - 4]
call fcn.00432e30
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x431ffe
lea ecx, [ebp - 0x28]
push ecx
call eax
jmp 0x432008
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
dec eax
je 0x4320dd
dec eax
jne 0x4320df
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
cmp eax, 6
jne 0x43206a
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
sub eax, 0
je 0x432056
dec eax
je 0x432042
mov esi, 0xa
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp byte [ebp - 0x2a], 1
pop edi
sete al
lea esi, [eax + 8]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp byte [ebp - 0x2a], 1
pop edi
setne cl
lea esi, [ecx + 6]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
jbe 0x432071
mov esi, 0xb
cmp eax, 5
jne 0x4320df
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
cmp eax, 2
jne 0x4320ba
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x432094
mov esi, 5
jmp 0x4320ab
cmp byte [ebp - 0x2a], 1
jne 0x4320a6
cmp word [ebp - 0x28], 9
mov esi, 3
je 0x4320ab
mov esi, 4
cmp dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 5
jne 0x4320df
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
cmp eax, 1
jne 0x4320cc
mov esi, 2
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4320df
mov esi, 1
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4320f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
xor eax, eax
push 0x206
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
mov word [ebp - 0x214], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_baidubrowser.exe
push 0x80000002
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43216e
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0x498b64
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
mov word [esi], dx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432190
sub eax, edx
sar eax, 1
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
mov ecx, esi
call fcn.0041f140
mov eax, esi
mov esp, ebp
pop ebp
ret

Function at 0x4321c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
push ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
cmp eax, edi
je 0x432290
lea edi, [eax*4]
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x432203
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push edi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x432284
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0x49a27c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov edi, eax
test edi, edi
je 0x432286
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
mov edi, dword [ebp + 8]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push 0x499c24
push 0xfb
push edi
call dword [sym.imp.MSVCR100.dll_swprintf_s]
xor eax, eax
add esp, 0x1c
mov word [edi + 0x1f4], ax
push esi
lea edi, [eax + 1]
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4322a0
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor eax, eax
push 0x206
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
mov word [ebp - 0x208], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0x26
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Internet_Explorer
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0xc
xor ecx, ecx
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432310
sub eax, edx
sar eax, 1
push eax
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
mov ecx, esi
call fcn.0041f140
mov eax, esi
mov esp, ebp
pop ebp
ret