joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a8a4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4b5bec]
cmp byte [eax + 0xa5], 0
jne 0x46a915
cmp dword [0x4b5c04], 0
jne 0x46a8d6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46a860
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b5c04], eax
cmp dword [0x4b5c00], 0
jne 0x46a8f1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b5c00], eax
cmp dword [0x4b5c08], 0
jne 0x46a915
push esp
push 0
push 0
push 0x46a804
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b5c08], eax
pop edx
ret

Function at 0x46afa0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b5bec]
cmp dword [eax + 0x30], 0
je 0x46b04a
cmp dword [ebx + 0x94], 0
jne 0x46b044
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46af30
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46b044
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46b00a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46b044
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041cd4c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46b019
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46bbac
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46bbe1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a08
jmp 0x46bbee
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040496c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46ccf8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46cd39
mov eax, esi
call fcn.00452e5c
test al, al
je 0x46cd39
mov eax, dword [ebx + 0x84]
call fcn.00452b58
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46cd39
push 0
mov eax, dword [ebx + 0x84]
call fcn.00452b58
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46ea5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46ecbc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x46eabf
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0046e524
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040dbb0
cmp al, 1
jne 0x46eabf
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0046e83c
test al, al
je 0x46ec4b
cmp dword [ebp - 8], 0
jge 0x46eadd
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0046e524
mov eax, dword [ebp - 0x210]
call fcn.00404bd8
cmp ebx, eax
jge 0x46eb27
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0046e524
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4b4b94]
and eax, 0xff
bt dword [edx], eax
jae 0x46eb27
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x46eb3b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046ea38
cmp ebx, dword [ebp - 8]
je 0x46ec3d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x46eb67
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ce0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b4134]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x46ec2a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ce0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b4134]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00452b58
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ce0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b4134]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00452b58
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ec31
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x46ec9e
cmp dword [ebp - 8], 0
jge 0x46ec56
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0046e524
mov eax, dword [ebp - 0x218]
call fcn.00404bd8
cmp eax, dword [ebp - 8]
jg 0x46ec90
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0046e524
mov eax, dword [ebp - 0x21c]
call fcn.00404bd8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046ea38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ecc3
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040493c
ret
Function at 0x4ad5bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ad62b
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xb]
push eax
push 0x1004
mov eax, ebx
call fcn.004ad63c
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404b88
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004033bc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4ad615
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad632
lea eax, [ebp - 0x10]
call fcn.00404918
ret

Function at 0x4adf24
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov esi, eax
lea edi, [ebp - 0x2c]
xor eax, eax
push ebp
push 0x4ae059
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x38]
push eax
mov eax, dword [0x4b4988]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, edi
xor ecx, ecx
mov edx, 0x20
call fcn.00403160
mov eax, dword [0x4b4988]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], eax
lea eax, [ebp - 0x130]
mov dword [edi + 8], eax
cmp dword [esi + 0x48], 0
je 0x4adf9c
mov eax, dword [esi + 0x48]
call fcn.00404dd8
mov dword [edi + 0xc], eax
jmp 0x4adfa1
xor eax, eax
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 0x10], eax
cmp dword [esi + 0x3c], 0
je 0x4adfb6
cmp byte [esi + 0x4c], 0
jne 0x4adfb6
or dword [edi + 0x10], 4
cmp byte [esi + 0x4d], 0
je 0x4adfc0
or dword [edi + 0x10], 0x10
cmp byte [esi + 0x4c], 0
je 0x4adfd1
push 0
call sub.ole32.dll_OleInitialize
or dword [edi + 0x10], 0x40
mov eax, 0x4adc3c
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], esi
xor eax, eax
mov dword [esi + 0x50], eax
push edi
call sub.shell32.dll_SHBrowseForFolderA
mov dword [ebp - 8], eax
xor ebx, ebx
cmp dword [ebp - 8], 0
je 0x4ae038
lea eax, [esi + 0x34]
mov edx, dword [edi + 8]
call fcn.00404b10
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [esi + 0x30]
lea edx, [ebp - 0x130]
call fcn.00404b10
mov bl, 1
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetMalloc
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
cmp byte [esi + 0x4c], 0
je 0x4ae043
call sub.ole32.dll_OleUninitialize
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae060
lea eax, [ebp - 0xc]
call fcn.00406544
ret
Function at 0x40156e
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4524c8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, edx
cmp eax, str.QQUrlMgr
je 0x4016d0
push esi
push edi
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.0041e3e0
push 0x4449fc
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0041ecbe
add esp, 0x18
push str.QQUrlMgr
push 0x4449fc
call fcn.0041e3c2
pop ecx
sub esi, eax
push esi
push 0x4449fc
call fcn.0041e3c2
lea esi, [ebp - 0x20c]
pop ecx
lea eax, [esi + eax*2]
push eax
call fcn.0041ed1a
add esp, 0xc
lea eax, [ebp - 0x210]
mov esi, 0xf003f
push eax
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401641
push edi
lea eax, [ebp - 0x210]
push eax
push edi
push esi
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401677
push ebx
call fcn.0041e3c2
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push edi
push str.InstallDir
push dword [ebp - 0x210]
call esi
test eax, eax
je 0x40167b
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4016ce
xor eax, eax
mov ebx, str.userinfo
cmp eax, ebx
je 0x4016ac
push ebx
call fcn.0041e3c2
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push edi
push str.ExcDir
push dword [ebp - 0x210]
call esi
test eax, eax
je 0x4016bd
jmp 0x4016c0
push str.ExcDir
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor edi, edi
inc edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041e2e9
mov esp, ebp
pop ebp
ret

Function at 0x401a17
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4524c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x401a38
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x1c
pop edi
push edi
mov ebx, eax
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0041e3e0
add esp, 0xc
mov dword [ebp - 0x20], edi
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x401a9b
cmp esi, dword [ebp - 0x14]
jne 0x401a90
cmp ebx, dword [ebp - 0x18]
je 0x401a90
push dword [ebp - 0x18]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
je 0x401a90
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x401a6e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e2e9
mov esp, ebp
pop ebp
ret
Function at 0x404afa
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x4524c8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0xd40], edx
push edi
mov dword [ebp - 0xd34], ecx
xor esi, esi
mov dword [ebp - 0xd3c], eax
test bl, bl
jne 0x404d5d
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.0041e3e0
push esi
push 0x444e54
lea eax, [ebp - 0x50c]
push 0xff
push eax
call fcn.00405236
add esp, 0x1c
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x50c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x404d53
and dword [ebp - 0xd38], 0
lea eax, [ebp - 0xd18]
push 0xc
push 0
push eax
call fcn.0041e3e0
xor eax, eax
push 0x800
push eax
mov dword [ebp - 0xd18], eax
mov dword [ebp - 0xd14], eax
lea eax, [ebp - 0xd0c]
push eax
call fcn.0041e3e0
add esp, 0x18
lea eax, [ebp - 0xd38]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd18]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404d46
push 0xff
lea eax, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
push 0
push eax
call fcn.0041e3e0
push 0xff
lea eax, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
push 0
push eax
call fcn.0041e3e0
push 0xff
lea eax, [ebp - 0x30b]
mov byte [ebp - 0x30c], bl
push 0
push eax
call fcn.0041e3e0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.00404560
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.00404560
call fcn.00409e79
mov edx, dword [ebp - 0xcf4]
lea ecx, [ebp - 0x10c]
cmp eax, 0xb
push ecx
setl al
lea ecx, [ebp - 0xd0c]
movzx eax, al
push eax
call fcn.00404560
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.0041fa2b
add esp, 0x40
test eax, eax
jne 0x404cbc
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.0041fa2b
pop ecx
test eax, eax
je 0x404d4c
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.00401f48
mov ecx, dword [ebp - 0xd34]
push eax
call fcn.00405041
xor ebx, ebx
lea ecx, [ebp - 0xd30]
push ebx
push 1
call fcn.00402015
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.00401f48
mov ecx, dword [ebp - 0xd40]
push eax
call fcn.00405041
push ebx
push 1
lea ecx, [ebp - 0xd30]
call fcn.00402015
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.00401f48
mov ecx, dword [ebp - 0xd3c]
push eax
call fcn.00405041
push ebx
push 1
lea ecx, [ebp - 0xd30]
call fcn.00402015
mov bl, 1
jmp 0x404d4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x404b29
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e2e9
mov esp, ebp
pop ebp
ret
Function at 0x4052aa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4524c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push 3
pop esi
inc eax
mov dword [ebp - 0x118], 0x104
mov dword [ebp - 0x114], eax
mov ebx, ecx
lea eax, [ebp - 0x11c]
xor ecx, ecx
push eax
push 0x20019
push ecx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], ecx
call edi
test eax, eax
jne 0x405463
push ebx
push str._sConnection
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.004058e3
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40545b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x110]
call ebx
test eax, eax
jne 0x405453
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x114], 1
push eax
mov dword [ebp - 0x118], 0x103
call fcn.0041e3e0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x110]
call ebx
test eax, eax
jne 0x405453
mov eax, dword [ebp - 0x10c]
cmp eax, 1
jne 0x40544a
mov ebx, 0x444f20
push ebx
call fcn.0041ee60
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00421640
add esp, 0x10
test eax, eax
jne 0x405419
xor esi, esi
jmp 0x405453
mov eax, dword [ebp - 0x10c]
cmp eax, 1
jne 0x40544a
push ebx
call fcn.0041ee60
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00421640
add esp, 0x10
test eax, eax
je 0x405444
push 2
pop esi
jmp 0x405453
mov eax, dword [ebp - 0x10c]
cmp eax, 2
push 1
pop eax
cmove esi, eax
push dword [ebp - 0x110]
call edi
push dword [ebp - 0x11c]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e2e9
mov esp, ebp
pop ebp
ret
Function at 0x4056e1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa4
call fcn.00432510
mov eax, dword [0x4524c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0041e3e0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041e3c2
pop ecx
test eax, eax
jle 0x40576f
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x40576f
mov word [ebp + eax*2 - 0x20c], cx
lea eax, [eax*2 + 2]
cmp eax, 0x208
jae 0x4058dd
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.0041e3c2
mov ecx, esi
sub ecx, eax
lea eax, [ebp - 0x20c]
push ecx
push str.iphlpapi.dll
push esi
push eax
call fcn.00421bdb
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aa0], eax
test eax, eax
jne 0x4057b3
xor al, al
jmp 0x4058cd
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4058a0
lea ecx, [ebp - 0x2aa4]
mov dword [ebp - 0x2aa4], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x4058a0
push ebx
push 3
pop eax
mov dword [ebp - 0x2a9c], eax
lea esi, [ebp - 0x2a8c]
mov ebx, edi
lea eax, [ebp - 0x2a94]
sub ebx, eax
lea ecx, [esi + 8]
call fcn.004052aa
push 6
mov dword [ebp - 0x2a98], eax
lea eax, [ebp - 0x2a94]
push 0
push eax
call fcn.0041e3e0
add esp, 0xc
xor edx, edx
lea ecx, [ebp - 0x2a94]
add ecx, edx
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x405843
inc edx
cmp edx, 6
jb 0x405826
mov ecx, dword [ebp - 0x2a98]
jmp 0x40585a
cmp dword [esi + 0x1a0], 6
jne 0x405895
mov ecx, dword [ebp - 0x2a98]
cmp dword [ebp - 0x2a9c], ecx
jle 0x405895
mov al, byte [esi + 0x194]
mov byte [edi], al
mov al, byte [esi + 0x195]
mov byte [edi + 1], al
mov al, byte [esi + 0x196]
mov byte [edi + 2], al
mov al, byte [esi + 0x197]
mov byte [edi + 3], al
mov al, byte [esi + 0x198]
mov byte [edi + 4], al
mov al, byte [esi + 0x199]
mov byte [edi + 5], al
mov dword [ebp - 0x2a9c], ecx
mov esi, dword [esi]
test esi, esi
jne 0x405803
pop ebx
push dword [ebp - 0x2aa0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 6
lea eax, [ebp - 0x2a94]
push 0
push eax
call fcn.0041e3e0
add esp, 0xc
lea eax, [ebp - 0x2a94]
mov ecx, edi
push eax
call fcn.0040527f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041e2e9
mov esp, ebp
pop ebp
ret
call fcn.00421887
int3
Function at 0x406aca
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x43c4cf
call fcn.00423c42
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x44]
xor bl, bl
call fcn.00406d07
xor ecx, ecx
lea eax, [ebp - 0x44]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x30], 8
push 3
cmovae eax, dword [ebp - 0x44]
push ecx
inc ecx
push ecx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406b9d
mov dl, 1
lea ecx, [ebp - 0x2c]
call fcn.00406d07
lea ecx, [ebp - 0x44]
call fcn.004072ab
test al, al
jne 0x406b6a
lea ecx, [ebp - 0x2c]
call fcn.004072ab
test al, al
je 0x406b6a
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
push 0
cmovae ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x406b6a
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00403735
cmp esi, 0xffffffff
je 0x406bd7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x406bd0
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x48]
push 0
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406bd0
cmp dword [ebp - 0x48], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x44]
push 0
inc eax
push eax
call fcn.00403735
mov al, bl
call fcn.00423bf1
ret

Function at 0x406bed
Capabilities:
Write file on windows

Disassembly:
push 0x3c
mov eax, 0x43c4cf
call fcn.00423c42
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x44]
xor bl, bl
call fcn.00406d07
xor ecx, ecx
lea eax, [ebp - 0x44]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x30], 8
push 2
cmovae eax, dword [ebp - 0x44]
push ecx
inc ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406c6e
mov dl, 1
lea ecx, [ebp - 0x2c]
call fcn.00406d07
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
push ecx
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00403735
cmp esi, 0xffffffff
je 0x406c96
push 0
lea eax, [ebp - 0x48]
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406c8f
cmp dword [ebp - 0x48], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x44]
push 0
inc eax
push eax
call fcn.00403735
mov al, bl
call fcn.00423bf1
ret
Function at 0x406d07
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x22c
mov eax, 0x43c521
call fcn.00423c42
mov bl, dl
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], ecx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
mov word [esi], ax
push 0x208
xor edi, edi
mov dword [ebp - 4], ecx
push ecx
lea eax, [ebp - 0x218]
inc edi
push eax
mov dword [ebp - 0x234], edi
call fcn.0041e3e0
add esp, 0xc
test bl, bl
push edi
push 0x23
pop eax
push 0x1a
pop ecx
cmovne eax, ecx
xor edi, edi
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x406e2f
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x406dac
lea eax, [ebp - 0x218]
push eax
call fcn.0041e3c2
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403888
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00403a7e
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00403735
mov edi, str.TencentDeskUpdate
test bl, bl
jne 0x406df8
mov edi, str.TencentDesktop
push edi
call fcn.0041e3c2
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004037e5
mov ecx, esi
call fcn.00406e37
test al, al
jne 0x406e1a
mov ecx, esi
call fcn.00406f02
mov edi, str.Global.db
push edi
call fcn.0041e3c2
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004037e5
mov eax, esi
call fcn.00423bf1
ret