joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404560
Capabilities:
Create process on windows

Disassembly:
cmp edx, 0x110
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
jne 0x404597
mov ebp, 1
push esi
mov dword [esi + 0x134], ebp
call fcn.0040b2f0
mov dword [edi], eax
cmp dword [esi + 0x134], 0
je 0x404704
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 4
cmp edx, 0x113
jne 0x4045d0
mov ebp, 1
cmp ecx, ebp
mov dword [esi + 0x134], ebp
jne 0x4045b5
mov ebx, esi
call fcn.0040b8e0
mov dword [edi], 0
cmp dword [esi + 0x134], 0
je 0x404704
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 4
cmp edx, 0x111
jne 0x40464e
mov ebp, 1
cmp cx, bp
jne 0x4045f5
mov eax, dword [esi + 4]
push ebp
push eax
mov dword [esi + 0x134], ebp
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4045b5
cmp cx, 2
jne 0x40460f
mov ecx, dword [esi + 4]
push 2
push ecx
mov dword [esi + 0x134], ebp
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4045b5
cmp cx, 0x3f0
jne 0x40462c
push ecx
mov ecx, esp
mov dword [esi + 0x134], ebp
mov dword [esp + 0x14], esp
mov dword [ecx], eax
call fcn.0040b4f0
jmp 0x4045b5
cmp cx, 0x3f7
jne 0x404676
push ecx
mov ecx, esp
mov dword [esi + 0x134], ebp
mov dword [ecx], eax
mov ecx, esi
mov dword [esp + 0x14], esp
call fcn.0040b810
jmp 0x4045b5
cmp edx, 0x14
jne 0x404704
push ecx
mov eax, esp
mov ebp, 1
mov dword [esp + 0x14], esp
mov dword [esi + 0x134], ebp
push esi
mov dword [eax], ecx
call fcn.004042d0
jmp 0x404580
cmp cx, 0x3f1
jne 0x4046a5
push ebp
push 0
push 0
push str.http:__www.beike.cn_ztexe.html
push 0x4377ec
push 0
mov dword [esi + 0x134], ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [edi], 0
jmp 0x404582
cmp cx, 0x3f2
jne 0x4046b8
push ebp
push 0
push 0
push str.http:__bbs.beike.cn_forum_17_1.html
jmp 0x404687
cmp cx, 0x3f3
jne 0x4046de
push ecx
mov ecx, esp
mov dword [esi + 0x134], ebp
mov dword [esp + 0x14], esp
mov dword [ecx], eax
call fcn.0040ba20
mov dword [edi], 0
jmp 0x404582
cmp cx, 0x3f4
jne 0x404704
push ecx
mov ecx, esp
mov dword [esi + 0x134], ebp
mov dword [esp + 0x14], esp
mov dword [ecx], eax
call fcn.0040ba40
mov dword [edi], 0
jmp 0x404582
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x4047c0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
push edi
push 0x38
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0x3c
call fcn.0040ed60
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
lea esi, [ebp + 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x105
add esp, 0xc
or ecx, edx
jge 0x40480e
mov ecx, 0x105
mov eax, esi
call fcn.00402b40
mov eax, dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
lea edi, [ebp + 0xc]
sub eax, 0x10
mov ebx, 0x104
mov dword [esp + 0x24], ebx
mov edx, dword [eax + 8]
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x105
or ecx, edx
jge 0x404845
lea ecx, [ebx + 1]
mov eax, edi
call fcn.00402b40
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push 0x80000000
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x5c]
push 0
push ebx
mov dword [esp + 0x4c], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edx, dword [esi]
test edx, edx
mov dword [esp + 0x50], eax
jne 0x404874
xor ecx, ecx
jmp 0x404899
mov ecx, edx
lea eax, [ecx + 2]
lea esp, [esp]
mov bx, word [ecx]
add ecx, 2
test bx, bx
jne 0x404880
sub ecx, eax
sar ecx, 1
js 0x404925
mov ebx, dword [esp + 0x54]
cmp ecx, dword [edx - 8]
jg 0x404925
mov dword [edx - 0xc], ecx
mov edx, dword [esi]
mov word [edx + ecx*2], 0
mov edx, dword [edi]
test edx, edx
jne 0x4048b7
xor ecx, ecx
jmp 0x4048d1
mov ecx, edx
lea eax, [ecx + 2]
lea esp, [esp]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x4048c0
sub ecx, eax
sar ecx, 1
js 0x404925
cmp ecx, dword [edx - 8]
jg 0x404925
test ebx, ebx
mov dword [edx - 0xc], ecx
mov eax, dword [edi]
mov edx, dword [esp + 0x50]
mov word [eax + ecx*2], 0
mov cx, word [esp + 0x28]
mov word [ebp + 0x10], cx
mov dword [ebp], edx
lea eax, [ebp + 4]
jne 0x4048fc
xor ecx, ecx
jmp 0x404910
mov ecx, ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404901
sub ecx, esi
sar ecx, 1
push ebx
mov ebx, ecx
call fcn.004032b0
mov eax, dword [ebp]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8
push 0x80070057
call fcn.00402a10
int3

Function at 0x404a60
Capabilities:
Create thread

Disassembly:
push edi
push 0xc
call fcn.0040e34e
mov edi, eax
add esp, 4
test edi, edi
je 0x404ab9
mov eax, dword [0x43d8f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x43d8f4
call edx
add eax, 0x10
mov dword [edi], eax
call fcn.00405850
mov eax, dword [esp + 8]
push 0
push 0
push edi
push 0x404cd0
mov dword [edi + 4], eax
mov ecx, dword [0x43e58c]
push 0
push 0
mov dword [edi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
ret 4
Function at 0x404ac0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4326c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x43c070]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x43c070]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.software_beike
mov dword [esp + 0x58], 0
push SysStringLen
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404ca6
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404b69
cmp dword [esp + 0xc], 3
je 0x404b98
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jl 0x404c9b
push 0x10
lea eax, [esp + 0x1c]
push eax
push 3
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x404c9b
mov eax, dword [0x43e588]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x21
or ecx, edx
jge 0x404bc3
mov ecx, 0x21
mov eax, 0x43e588
call fcn.00402b40
mov eax, dword [0x43e588]
xor ecx, ecx
add eax, 4
jmp 0x404bd0
movzx edx, byte [esp + ecx + 0x18]
shr edx, 4
movzx edx, word [edx*2 + str.0123456789ABCDEF]
mov word [eax - 4], dx
movzx edx, byte [esp + ecx + 0x18]
and edx, 0xf
movzx edx, word [edx*2 + str.0123456789ABCDEF]
mov word [eax - 2], dx
movzx edx, byte [esp + ecx + 0x19]
shr edx, 4
movzx edx, word [edx*2 + str.0123456789ABCDEF]
mov word [eax], dx
movzx edx, byte [esp + ecx + 0x19]
and edx, 0xf
movzx edx, word [edx*2 + str.0123456789ABCDEF]
mov word [eax + 2], dx
movzx edx, byte [esp + ecx + 0x1a]
shr edx, 4
movzx edx, word [edx*2 + str.0123456789ABCDEF]
mov word [eax + 4], dx
movzx edx, byte [esp + ecx + 0x1a]
and edx, 0xf
movzx edx, word [edx*2 + str.0123456789ABCDEF]
mov word [eax + 6], dx
movzx edx, byte [esp + ecx + 0x1b]
shr edx, 4
movzx edx, word [edx*2 + str.0123456789ABCDEF]
mov word [eax + 8], dx
movzx edx, byte [esp + ecx + 0x1b]
and edx, 0xf
movzx edx, word [edx*2 + str.0123456789ABCDEF]
mov word [eax + 0xa], dx
add ecx, 4
add eax, 0x10
cmp ecx, 0x10
jb 0x404bd0
mov eax, dword [0x43e588]
mov ecx, 0x20
cmp dword [eax - 8], ecx
jl 0x404cc2
mov dword [eax - 0xc], ecx
mov eax, dword [0x43e588]
mov word [eax + 0x40], 0
test esi, esi
je 0x404ca6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040da0d
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402a10
int3
Function at 0x405170
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x432b80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43c070]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], ebx
mov eax, dword [0x43d8f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x43d8f4
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
mov byte [esp + 0x38], 1
push str.SOFTWARE_beikeBeikeScan
push SysStringLen
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x405265
mov edi, dword [esp + 0x10]
mov ecx, 1
mov dword [esp + 0x18], 0x200
mov dword [esp + 0x1c], ecx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x200
or eax, ecx
mov dword [esp + 0x20], edi
jge 0x405222
mov ecx, 0x200
lea eax, [esp + 0x14]
call fcn.00402b40
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x24]
push edx
push ebx
push str.ExePath
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
jne 0x405242
xor eax, eax
jmp 0x405256
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405247
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
mov eax, 0x43e5cc
call fcn.004032b0
xor ebx, ebx
mov eax, dword [0x43e5cc]
cmp dword [eax - 0xc], ebx
je 0x405276
push 4
call fcn.00404a60
cmp esi, ebx
jne 0x40527e
xor eax, eax
jmp 0x405294
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405283
sub eax, edx
sar eax, 1
js 0x4052e3
cmp eax, dword [esi - 8]
jg 0x4052e3
mov dword [esi - 0xc], eax
mov word [esi + eax*2], bx
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x4052cb
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.00402a10
int3
Function at 0x407040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4324e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x43c070]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], eax
call dword [section..data]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x410]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x4070c9
call fcn.00409db0
mov esi, eax
jmp 0x4071af
mov edx, dword [ebp - 0x14]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4070e5
call fcn.00409db0
jmp 0x4071a6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x4070fe
call fcn.00409db0
jmp 0x4071a6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
jae 0x407134
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x407122
lea eax, [ebp]
call fcn.00407220
lea esi, [ebp - 0x1c]
call fcn.00406b50
mov eax, 0x8007000e
jmp 0x4071c2
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00407230
mov dword [ebp - 4], 1
jmp 0x40715c
mov esi, dword [ebp]
test esi, esi
jne 0x40716a
mov esi, 0x8007000e
jmp 0x4071a8
call dword [section..data]
mov ecx, dword [ebp - 0x20]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40718b
call fcn.00409db0
jmp 0x4071a6
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00407300
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4071c0
lea eax, [ebp]
call fcn.00407220
nop
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 + 0x404]
xor ecx, ebp
call fcn.0040da0d
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4086a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4086b3
push 0x80004005
call fcn.00402a10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4086c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x408900
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x43c070]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x40896e
test ecx, ecx
je 0x408960
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x40897c
test ecx, ecx
je 0x408a21
push ecx
jmp 0x408a1b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x4089ee
jmp 0x4089b0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00408900
mov edi, eax
test edi, edi
jne 0x408a3d
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x4089b0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408a05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408a21
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040da0d
add esp, 0x224
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408a4c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x408a23
Function at 0x40a0a0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
mov eax, dword [edi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, esi
or ecx, edx
jge 0x40a0cc
mov ecx, esi
mov eax, edi
call fcn.00402b40
mov eax, dword [edi]
push esi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 0xffffffff
mov ecx, eax
jne 0x40a0ff
mov ecx, dword [edi]
test ecx, ecx
je 0x40a103
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40a0f0
sub ecx, esi
sar ecx, 1
test ecx, ecx
jl 0x40a117
mov edx, dword [edi]
cmp ecx, dword [edx - 8]
jg 0x40a117
mov dword [edx - 0xc], ecx
mov edx, dword [edi]
mov word [edx + ecx*2], 0
pop esi
ret
push 0x80070057
call fcn.00402a10
int3

Function at 0x40a250
Capabilities:
Create process on windows

Disassembly:
push 1
push 0
push 0
push eax
push 0x4377ec
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x40a630
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
xor esi, esi
mov dword [esp + 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, esi
je 0x40a696
lea ecx, [esp + 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40a696
lea edx, [esp + 0xc]
push edx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40a696
mov ecx, dword [esp + 4]
push esi
push esi
push esi
lea eax, [esp + 0x14]
push eax
push esi
push ecx
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
lea eax, [esi + 1]
jne 0x40a698
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x40a6a0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x432a4b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x43c070]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c070]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov eax, dword [0x43d8f4]
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x238]
mov ebp, dword [esp + 0x23c]
mov edi, 1
mov ecx, 0x43d8f4
mov dword [esp + 0x14], edi
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x230], ebx
cmp dword [0x43e564], ebx
je 0x40a71d
mov dword [esp + 0x14], ebx
add dword [0x43e568], edi
push esi
xor edi, edi
call fcn.0040c8f0
add esp, 4
test eax, eax
jne 0x40a73b
call fcn.0040ca70
test eax, eax
je 0x40a740
mov edi, 1
call fcn.0040cac0
test eax, eax
jne 0x40a74d
cmp edi, ebx
je 0x40a7a1
cmp dword [0x43e584], ebx
jne 0x40a761
mov ecx, esi
call fcn.0040c6e0
mov dword [0x43e584], eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40a77c
push esi
call fcn.0040a8b0
add esp, 4
add dword [0x43e56c], 1
push esi
call fcn.0040cbc0
add esp, 4
test eax, eax
je 0x40a7a1
push esi
call fcn.0040a8b0
mov eax, dword [0x43e570]
add esp, 4
add eax, 1
mov dword [0x43e570], eax
jmp 0x40a7a6
mov eax, dword [0x43e570]
mov ecx, dword [0x43e56c]
cmp ecx, ebx
je 0x40a7d1
cmp eax, ebx
je 0x40a7f2
push eax
mov eax, dword [0x43e568]
push ecx
push eax
lea ecx, [esp + 0x28]
push 0x43727c
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x40a828
cmp eax, ebx
je 0x40a80f
mov edx, dword [0x43e568]
push eax
push edx
lea eax, [esp + 0x24]
push 0x4372b4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x40a828
push ecx
mov ecx, dword [0x43e568]
push ecx
lea edx, [esp + 0x24]
push 0x4372dc
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x40a828
mov eax, dword [0x43e568]
push eax
lea ecx, [esp + 0x20]
push 0x437300
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [esp + 0x1c]
push edx
push 0x3f9
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call ebx
mov ecx, dword [ebp + 4]
push esi
push 0x3f8
push ecx
call edi
push eax
call ebx
mov dword [esp + 0x230], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a881
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040da0d
add esp, 0x220
ret
Function at 0x40a8b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x432966
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x43c070]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c070]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x238]
xor esi, esi
push 0x206
lea eax, [esp + 0x22]
push esi
push eax
mov word [esp + 0x28], si
call fcn.0040ed60
mov edx, dword [0x43d8f4]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x43d8f4
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x230], esi
mov edx, dword [0x43d8f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x43d8f4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push esi
push 0x23
push esi
mov byte [esp + 0x244], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40a960
sub eax, edx
sar eax, 1
lea edx, [esp + 0x1c]
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.004032b0
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x40aa85
cmp eax, ecx
jg 0x40aa85
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x40a9b4
push 1
push 0x4366dc
lea eax, [esp + 0x1c]
push eax
call fcn.00402a60
push 0xb
push str.BeikeTools_
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402a60
mov edi, dword [esp + 0x14]
call fcn.00401770
push 0xc
push str.DirFixer.log
lea edx, [esp + 0x1c]
push edx
call fcn.00402a60
mov ebx, ebp
lea eax, [esp + 0x18]
call fcn.0040bdb0
push 2
lea eax, [esp + 0x1c]
push eax
call fcn.0040bf80
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
mov edi, dword [esp + 0x14]
push eax
push esi
mov eax, edi
call fcn.00401260
lea eax, [esi - 0x10]
add esp, 8
mov byte [esp + 0x230], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x230], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040da0d
add esp, 0x220
ret
push 0x80070057
call fcn.00402a10
int3
Function at 0x40aa90
Capabilities:
Delete file
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x43c
mov eax, dword [0x43c070]
xor eax, esp
mov dword [esp + 0x438], eax
push esi
push 0x22c
lea eax, [esp + 0xc]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x10], esi
call fcn.0040ed60
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40abf1
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
mov edx, dword [esp + 0x1c]
push edx
push 0
push 0x1f0fff
call ebp
mov edi, eax
test edi, edi
je 0x40abdb
push 0x104
lea eax, [esp + 0x244]
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40abb4
lea ecx, [esp + 0x240]
push ecx
xor ebx, ebx
call fcn.0040c8f0
add esp, 4
test eax, eax
jne 0x40ab3e
lea esi, [esp + 0x240]
call fcn.0040ca70
test eax, eax
je 0x40ab43
mov ebx, 1
lea esi, [esp + 0x240]
call fcn.0040cac0
test eax, eax
jne 0x40ab57
test ebx, ebx
je 0x40abb4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edx, [esp + 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40ab89
lea eax, [esp + 0x240]
push eax
call fcn.0040a8b0
add esp, 4
add dword [0x43e56c], 1
lea ecx, [esp + 0x240]
push ecx
call fcn.0040cbc0
add esp, 4
test eax, eax
je 0x40abb4
lea edx, [esp + 0x240]
push edx
call fcn.0040a8b0
add esp, 4
add dword [0x43e570], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x22c
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0040ed60
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x14], 0x22c
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40aae3
pop edi
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x43c]
pop esi
xor ecx, esp
call fcn.0040da0d
add esp, 0x43c
ret