joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ccd3
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xc8
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
push edi
mov edi, dword [ebp + 0x7c]
call fcn.100430bb
test al, al
je 0x1000cd0e
push edi
push str.TxDl_Main_enter__cmdline_s
push 0xd2
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projTxdlTxdl.cpp
call fcn.10042f4a
add esp, 0x10
mov esi, 0x1007dc88
push esi
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push edi
lea eax, [ebp + 4]
push eax
call fcn.10002e48
push esi
push dword [ebp + 4]
call fcn.10056ec3
test eax, eax
pop ecx
pop ecx
jne 0x1000cd43
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp + 4]
push eax
call fcn.100030a8
mov esi, dword [ebp + 4]
push 0x1007dc48
lea eax, [ebp - 0x38]
call fcn.1000188f
push eax
push 0x1007e7b8
lea eax, [ebp - 0x54]
call fcn.1000188f
push eax
push 0x1007e7bc
lea eax, [ebp - 0x1c]
call fcn.1000188f
push eax
sub esp, 0x1c
mov eax, esp
mov dword [ebp], esp
push esi
call fcn.1000188f
lea ecx, [ebp + 0xc]
call fcn.100011f7
xor edi, edi
push edi
push 1
lea esi, [ebp - 0x1c]
call fcn.10001ef7
push edi
push 1
lea esi, [ebp - 0x54]
call fcn.10001ef7
push edi
push 1
lea esi, [ebp - 0x38]
call fcn.10001ef7
push 0x1007e7c4
lea eax, [ebp - 0x1c]
mov dword [ebp + 8], edi
mov dword [ebp], edi
call fcn.1000188f
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 8]
lea edx, [ebp + 0xc]
call fcn.1000f379
push edi
push 1
lea esi, [ebp - 0x1c]
call fcn.10001ef7
push dword [ebp + 8]
call fcn.1000caa7
test eax, eax
je 0x1000ce0f
lea ecx, [ebp + 0xc]
call fcn.100012fa
mov eax, dword [ebp + 4]
add eax, 0xfffffff0
call fcn.10003475
or eax, 0xffffffff
mov ecx, dword [ebp + 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.10053c51
add ebp, 0x74
leave
ret 4
call fcn.1000cb3b
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], edi
call sym.QQPCDownload.dll_CreateTxdlController
test eax, eax
jge 0x1000ce50
call fcn.1000cb77
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x1000ce36
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or edi, 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100012fa
mov eax, dword [ebp + 4]
add eax, 0xfffffff0
call fcn.10003475
mov eax, edi
jmp 0x1000cdfc
push dword [ebp + 4]
lea esi, [ebp]
call fcn.1001476d
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
push edi
push dword [eax]
push esi
call dword [ecx + 0xc]
push dword [ebp]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
call fcn.10014e2a
mov ecx, esi
call fcn.1000cbaa
call fcn.10014e9d
cmp dword [0x1009d3dc], edi
je 0x1000ceab
mov eax, dword [0x1009d3d4]
mov ecx, dword [eax]
push 0x1009d3c8
push eax
call dword [ecx + 0x18]
mov eax, dword [0x1009d3d4]
mov ecx, dword [eax]
push 0x1009d3cc
push eax
call dword [ecx + 0x20]
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
call fcn.1000cb77
call fcn.100430bb
test al, al
je 0x1000ced6
push str.TxDl_Main_leave...
push 0xd2
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projTxdlTxdl.cpp
call fcn.10042f4a
add esp, 0xc
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x1000ce39
Function at 0x1000cf91
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x1009d284]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1000cfcb
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000cfbc
push 0xffffffffffffffff
push dword [0x1009d284]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x1009d284]
call esi
and dword [0x1009d284], 0
mov eax, dword [0x1009d28c]
test eax, eax
je 0x1000cfde
push eax
call esi
and dword [0x1009d28c], 0
pop esi
ret

Function at 0x1000cfe0
Capabilities:
Create thread

Disassembly:
push 0x1c
call fcn.100539ba
test eax, eax
pop ecx
je 0x1000cff7
push dword [esp + 4]
call fcn.1000188f
jmp 0x1000cff9
xor eax, eax
push 0x1009d288
push 0
push eax
push 0x1000cf2e
push 0
push 0
call fcn.100574ae
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [0x1009d284], eax
mov eax, ecx
mov dword [0x1009d290], eax
ret 4

Function at 0x1000e565
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1000e5ac
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x1000e5a5
cmp dword [esp + 4], 0x1b
jne 0x1000e58c
push 0
push 2
jmp 0x1000e597
cmp dword [esp + 4], 0xd
jne 0x1000e5a5
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x3c0], 0
ret 4
Function at 0x1001338a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x1001339d
push 0x80004005
call fcn.1000348d
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x100133a4
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10015fc7
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x10077508
call fcn.1005acb8
mov eax, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
cmp ebx, esi
mov dword [ebp - 0x30], eax
je 0x100160a5
cmp eax, esi
je 0x100160a5
push 0x40
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.100541d0
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
mov edi, 0x100847dc
push edi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x84], 0x44
mov dword [ebp - 0x58], 0x81
mov word [ebp - 0x54], si
call fcn.1000188f
push ebx
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], esi
call fcn.10006ad3
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.10006ad3
push 0x1007dc48
lea eax, [ebp - 0x2c]
push eax
call fcn.10006ad3
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.10006ad3
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10016067
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp ebx, esi
je 0x10016096
push dword [ebp - 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x3c]
call edi
push esi
push 1
lea esi, [ebp - 0x2c]
call fcn.10001ef7
mov eax, ebx
jmp 0x100160a7
xor eax, eax
call fcn.1005ad3b
ret
Function at 0x10016108
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2114]
mov eax, 0x2114
call fcn.1006bf40
push 0xffffffffffffffff
push 0x10075738
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp + 0x2110], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x211c]
xor ebx, ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ebx
push SysReAllocString
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call fcn.10015f5f
test eax, eax
jge 0x1001617e
cmp dword [ebp - 0x10], ebx
je 0x10016177
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10016259
xor eax, eax
mov byte [ebp + 0x2100], bl
lea edi, [ebp + 0x2101]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea esi, [ebp - 0x74]
stosb byte es:[edi], al
call fcn.100034e5
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x2000
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100161bd
call fcn.10014924
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x100161d1
lea ecx, [ebp]
lea edx, [ebp - 0x74]
call fcn.10003c2f
jmp 0x1001619a
cmp dword [ebp - 0x10], ebx
je 0x100161e2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
lea eax, [ebp + 0x2100]
push eax
lea esi, [ebp - 0x74]
call fcn.10003e3a
push 0xfe
lea eax, [ebp + 0x2002]
push ebx
push eax
mov word [ebp + 0x2000], bx
call fcn.100541d0
add esp, 0x10
lea esi, [ebp + 0x2000]
xor edi, edi
movzx eax, byte [ebp + edi + 0x2100]
push eax
push 0x100847e0
push 0xffffffffffffffff
push 3
push esi
call fcn.10057395
add esp, 0x14
add esi, 4
inc edi
cmp edi, 0x10
jb 0x10016215
lea eax, [ebp + 0x2000]
push eax
push dword [ebp - 0x18]
call fcn.100030a8
cmp dword [ebp - 0x10], ebx
je 0x10016256
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2110]
xor ecx, ebp
call fcn.10053c51
add ebp, 0x2114
leave
ret

Function at 0x1001627c
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push edi
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x80], eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.100541d0
push str.SOFTWARETencentQQPCMgr
lea edi, [ebp - 0x7c]
mov ebx, str.InstallDir
call fcn.10008f8d
add esp, 0x10
test eax, eax
pop edi
pop ebx
je 0x100162ee
lea eax, [ebp - 0x7c]
push eax
call fcn.10053c3b
test eax, eax
pop ecx
jbe 0x100162ee
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100162ee
lea eax, [ebp - 0x7c]
push eax
jmp 0x100162f3
push 0x1007dc88
mov eax, esi
call fcn.1000188f
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
mov eax, esi
call fcn.10053c51
add ebp, 0x194
leave
ret
Function at 0x1001915f
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, 0x1007a3e5
call fcn.1005ac4f
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
xor edi, edi
inc edi
cmp eax, 0xf
jne 0x100191a7
mov dword [esi + 0xd0], edi
push dword [ebp + 0x10]
and dword [ebp - 4], 0
call fcn.10017181
or dword [ebp - 4], 0xffffffff
and dword [ebx], 0
cmp dword [esi + 0xd0], 0
je 0x1001920c
mov eax, edi
call fcn.1005ad27
ret 0x14
cmp eax, 2
jne 0x100191e0
push dword [esi + 0xd4]
mov dword [esi + 0xd0], edi
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x10019191
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10019191
push 0
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x10019191
cmp eax, 0x47
jne 0x100191f7
push dword [ebp + 0x14]
mov eax, esi
mov dword [esi + 0xd0], edi
call fcn.10018f6e
jmp 0x10019191
cmp eax, 0x18
jne 0x10019194
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xd0], edi
call fcn.10019048
jmp 0x10019191
push ebx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100175ff
jmp 0x1001919f
Function at 0x1001da0f
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x3f4]
xor ecx, ecx
inc ecx
cmp eax, 2
mov dword [esi + 0x40c], ecx
je 0x1001da33
cmp eax, 3
je 0x1001da33
mov eax, esi
pop esi
jmp fcn.1001edc6
push ecx
call fcn.1001e43a
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x1001db1c
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, 0x10079118
call fcn.1005ac4f
mov esi, ecx
cmp dword [ebp + 8], 1
jne 0x1001db68
mov eax, dword [esi + 0x404]
mov ecx, dword [esi + 0x3e4]
cmp ecx, dword [eax + 0x30]
jb 0x1001db48
and dword [esi + 0x3e4], 0
mov ecx, dword [esi + 0x3e4]
mov eax, dword [eax + ecx*4 + 8]
test eax, eax
je 0x1001db5d
push eax
push esi
call fcn.1001ec6a
inc dword [esi + 0x3e4]
jmp 0x1001dc01
cmp dword [ebp + 8], 2
je 0x1001dc01
cmp dword [ebp + 8], 3
jne 0x1001dc01
mov eax, dword [esi + 0x41c]
inc dword [esi + 0x410]
mov ecx, dword [eax]
push 0
push str.hidetotraytime
push eax
call dword [ecx + 0x18]
mov edi, eax
sub edi, dword [esi + 0x410]
test edi, edi
jle 0x1001dbe1
mov eax, dword [0x1009d194]
mov ecx, 0x1009d194
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
push edi
lea eax, [ebp + 8]
push 0x10084d68
push eax
call fcn.1000ee4f
mov edi, dword [ebp + 8]
add esp, 0xc
push edi
push 0x64
mov eax, esi
call fcn.1001ec20
lea eax, [edi - 0x10]
call fcn.10003475
jmp 0x1001dc01
and dword [esi + 0x410], 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call fcn.1001e43a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
call fcn.1005ad27
ret 4

Function at 0x1001dc19
Capabilities:
Hide graphical window

Disassembly:
xor eax, eax
push esi
inc eax
mov esi, ecx
push eax
mov dword [esi + 0x40c], eax
call fcn.1001e43a
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x1001fbd4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
lea esi, [edi + 0x334]
cmp dword [esi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x1001fbf6
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esi], ebx
mov eax, dword [edi + 0x324]
cmp eax, ebx
je 0x1001fcc4
push eax
call fcn.1000c450
mov esi, eax
cmp esi, ebx
pop ecx
je 0x1001fc79
push ebx
push edi
push 2
pop eax
call fcn.1001f459
mov eax, dword [edi + 0x324]
cmp eax, dword [edi + 0x320]
jne 0x1001fc79
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, esi
push 0x202
call fcn.1000c4bf
mov eax, dword [esi + 0x88]
cmp eax, ebx
je 0x1001fc68
cmp word [eax], bx
je 0x1001fc68
push 1
push ebx
push ebx
push eax
push 0x10084d20
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x1001fc79
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1001fc79
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [edi + 0x324], ebx
je 0x1001fcc4
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push dword [edi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
pop ebx
leave
ret 0xc

Function at 0x100209bb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
je 0x10020a58
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov dword [ebp + 8], ebx
jmp 0x10020a4d
lea eax, [esi + 0xc]
cmp dword [eax], ebx
je 0x10020a73
push 0x4ff
push 0x64
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x10020a54
cmp eax, 0xffffffff
je 0x10020a73
push 6
pop ecx
push 1
push ebx
xor eax, eax
push ebx
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x10020a38
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
jne 0x10020a38
mov dword [ebp + 8], 1
cmp dword [ebp + 8], ebx
je 0x10020a4d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0x2710
ja 0x10020a73
cmp dword [esi + 4], ebx
jne 0x100209dc
jmp 0x10020a73
mov bl, 1
jmp 0x10020a73
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x10020a73
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
pop edi
mov al, bl
pop ebx
leave
ret 4
Function at 0x100216b6
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push edi
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
xor edi, edi
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10021761
push esi
push 0xff
lea eax, [ebp - 0x73]
push ebx
push eax
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x74], bl
call fcn.100541d0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.KAVINSTALLNEEDREBOOT
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], pe_nt_image_headers32
call esi
test eax, eax
je 0x10021754
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.KAV7NEEDREBOOT
push dword [ebp - 0x78]
call esi
test eax, eax
jne 0x10021757
xor edi, edi
inc edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x8c]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.10053c51
add ebp, 0x90
leave
ret

Function at 0x10021a7b
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [0x1009d300]
push edi
push 0x1007e754
push eax
xor ebx, ebx
push esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x10021ac3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053c51
leave
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10021ab2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x10021ab2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x10021ab2
push ebx
push 0x80
push 2
push ebx
push 1
push 0x10000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10021b17
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x10021ab2
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10021b42
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x10021ab4
xor ebx, ebx
inc ebx
jmp 0x10021b34
Function at 0x10021fd1
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x100761f8
call fcn.1005acb8
lea esi, [ebp - 0x2c]
mov ebx, ecx
call fcn.10009044
push str.DownloadTransmisson.ini
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.10009207
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [ebp - 0x28], si
lea edi, [ebp - 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 0x40]
cmp eax, esi
je 0x10022059
mov ecx, dword [eax]
push esi
push 0x10084548
push eax
call dword [ecx + 0x18]
push 0xa
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.10058024
add esp, 0xc
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
push str.TagId
push str.QQPCDownload
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x16
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.100541d0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.10003475
xor eax, eax
inc eax
call fcn.1005ad3b
ret

Function at 0x100221f9
Capabilities:
Create thread

Disassembly:
push 0x30
mov eax, 0x10078448
call fcn.1005acb8
xor edi, edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], edi
mov word [ebp - 0x34], di
push esi
mov dword [ebp - 4], edi
call fcn.10053c3b
pop ecx
mov ecx, esi
lea esi, [ebp - 0x38]
call fcn.1000238b
push edi
push edi
push 1
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
je 0x100222a9
push edi
push edi
mov eax, esi
push eax
push 0x10022150
push edi
push edi
call fcn.100574ae
add esp, 0x18
cmp eax, edi
mov dword [ebp - 0x3c], eax
je 0x100222a0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1002228c
cmp dword [ebx + 0x3c], 1
jne 0x1002228c
cmp dword [0x1009d2fc], edi
jne 0x1002228c
call fcn.100222bf
test eax, eax
je 0x1002228c
mov dword [0x1009d2fc], 1
push 0x64
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x1002226b
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x18]
push edi
push 1
lea esi, [ebp - 0x38]
call fcn.10001ef7
mov eax, ebx
call fcn.1005ad3b
ret
Function at 0x1002241b
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
mov esi, ecx
test esi, esi
push edi
je 0x10022502
call dword [0x1009960c]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x10022502
lea edi, [eax + eax]
mov eax, edi
call fcn.10064ed0
mov eax, esp
push ebx
push edi
push esi
mov esi, eax
call fcn.10015f2c
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x10022502
push 0x208
lea eax, [ebp - 0x7a]
push ebx
push eax
mov word [ebp - 0x7c], bx
call fcn.100541d0
add esp, 0xc
lea esi, [ebp - 0x7c]
call fcn.10022604
push str.Txdlproxy.dat
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100224c2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x10085bfc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], ebx
call fcn.10058b29
add esp, 0xc
cmp dword [ebp - 0x80], ebx
je 0x10022502
push edi
call fcn.10053bb0
push dword [ebp - 0x80]
inc eax
push eax
push 1
push edi
call fcn.10058cd8
push dword [ebp - 0x80]
call fcn.10058dcc
xor eax, eax
add esp, 0x18
inc eax
jmp 0x10022504
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.10053c51
add ebp, 0x194
leave
ret

Function at 0x10022522
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1f0]
sub esp, 0x270
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp + 0x1ec], eax
mov eax, dword [ebp + 0x1f8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x208
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1e]
push ebx
push eax
mov word [ebp - 0x20], bx
call fcn.100541d0
add esp, 0xc
lea esi, [ebp - 0x20]
call fcn.10022604
push 0x10085c00
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.100541d0
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov eax, esi
push eax
push ebx
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
mov dword [ebp - 0x28], eax
je 0x100225e7
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
add esi, 0x48
lea edi, [ebp - 0x24]
mov dword [ebp - 0x24], eax
call fcn.100213ef
cmp dword [ebp - 0x24], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100225e2
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x1ec]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053c51
add ebp, 0x1f0
leave
ret 4