joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.10001a48
pop ecx
push eax
push esi
lea ecx, [edi + 0x3c]
call fcn.10001ddf
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push edi
push 0x1001788d
push ebx
push ebx
mov dword [edi + 0x58], ebx
mov dword [ebp - 8], ebx
call fcn.10096108
add esp, 0x18
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
lea ecx, [edi + 0x38]
push eax
call fcn.1001943d
cmp dword [ebp - 0xc], ebx
je 0x10017863
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x38], ebx
je 0x10017878
push 0xffffffffffffffff
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x58]
jmp 0x1001787a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret 4

Function at 0x10017a7f
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push 0x14
mov eax, 0x100bd6ef
call fcn.1008b481
mov edi, ecx
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10017a92
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x10017ab0
mov edi, ebx
jmp 0x10017ac7
add esi, esi
mov eax, esi
call fcn.1008b5e0
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.10019409
mov edi, eax
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10017acc
sub esi, ecx
mov edx, edi
push esi
call fcn.1001a355
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
call fcn.1001b2bf
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
mov edx, eax
mov dword [esp], str.TxdlService.dat
call fcn.10001474
pop ecx
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.100018f3
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10017b21
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x100f0424
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
call fcn.1009df0c
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x10017b68
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 1
push 4
push eax
call fcn.1009ecf7
push dword [ebp - 0x1c]
lea eax, [esi + 1]
push eax
push 1
push edi
call fcn.1009ecf7
push dword [ebp - 0x1c]
call fcn.1009edc5
add esp, 0x24
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.100018f3
xor eax, eax
inc eax
lea esp, [ebp - 0x30]
call fcn.1008b42b
ret
Function at 0x10017b92
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10017bc0
xor eax, eax
jmp 0x10017c0c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x10017bff
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10095ba5
pop ecx
pop ecx
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x230]
push eax
push edi
cmove esi, ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10017bda
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret
Function at 0x1001854d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1010f670
mov edi, 0xd2
push esi
push str.EntryPoint__g_szCmdline_s
push edi
mov ebx, str.D:qci_workspace_root_workspaces__qci_pipeline_11036542_1QQPCDownloadTxdlPackageLauncher.cpp
push ebx
call fcn.1006a3c4
mov ecx, esi
add esp, 0x10
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10018586
sub ecx, edx
sar ecx, 1
jne 0x100185a8
push str.EntryPoint__g_szCmdline_is_empty
push edi
push ebx
call fcn.1006a3c4
add esp, 0xc
jmp 0x10018600
push 0x40
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.1008dc90
add esp, 0xc
mov dword [ebp - 0x48], 0x44
xor eax, eax
mov dword [ebp - 0x1c], 0x81
mov word [ebp - 0x18], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x1010f670
push esi
movups xmmword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10018600
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10018613
Capabilities:
Get common file path

Disassembly:
push 0x42c
mov eax, 0x100bd834
call fcn.1008b481
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x438]
mov ebx, 0x100d1f58
push ebx
call fcn.100028c0
and dword [ebp - 4], 0
lea eax, [esi + 4]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x438]
call fcn.10002aa5
push ebx
call fcn.10001a48
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x438]
call fcn.10005760
mov esi, 0x100d1ccc
push esi
call fcn.10001a48
pop ecx
push eax
push esi
lea ecx, [ebp - 0x438]
call fcn.10005760
push edi
call fcn.10001a48
pop ecx
push eax
push edi
lea ecx, [ebp - 0x438]
call fcn.10005760
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov edi, 0x208
cmovae eax, dword [ebp - 0x438]
push eax
push edi
push 0x1010f670
call fcn.100954e7
push edi
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.1008dc90
add esp, 0x18
lea eax, [ebp - 0x218]
mov esi, 0x104
push esi
push eax
push dword [0x1010faac]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push str._EntryPoint
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10095d66
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.1008dc90
add esp, 0x18
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.rundll32.exe
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ecx
push ebx
push ecx
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x420]
call fcn.1001b4a1
add esp, 0xc
lea ecx, [ebp - 0x438]
mov esi, eax
push ebx
push 1
call fcn.10001f53
mov eax, esi
call fcn.1008b42b
ret 4

Function at 0x10018831
Capabilities:
Get session user name
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001883a
Function at 0x1001883a
Capabilities:
Get session user name
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x220], esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x10018a05
lea eax, [ebp - 0x21c]
push eax
push 0x100f0848
push 1
push esi
push 0x100f0828
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x100189c6
mov eax, dword [ebp - 0x21c]
mov esi, str.qminstall_task
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
push edx
push 0x100f0858
push 0x100f0838
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
mov esi, eax
test esi, esi
js 0x100189c6
lea edx, [ebx + 4]
cmp dword [edx + 0x14], 8
jb 0x100188e1
mov edx, dword [edx]
mov eax, dword [ebp - 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
xor ebx, ebx
test edi, edi
je 0x1001891d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100188fc
sub ecx, edx
sar ecx, 1
je 0x1001891d
mov eax, dword [ebp - 0x218]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x218]
push 0x2002
push eax
mov ecx, dword [eax]
call dword [ecx + 0x70]
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1008dc90
add esp, 0xc
mov dword [ebp - 0x210], 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x20c]
push ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x220]
push edx
push 0x100c5760
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x100189c6
mov eax, dword [ebp - 0x220]
push 1
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
js 0x100189c6
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x100189d6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x218]
test ecx, ecx
je 0x100189e6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x100189f6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
not esi
shr esi, 0x1f
mov eax, esi
jmp 0x10018a07
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret 4
Function at 0x10019191
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x1010b070]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [esp + 0x10]
stosd dword es:[edi], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
xor edi, edi
or eax, 0x2001f
mov dword [esp + 0x10], edi
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.10003d94
mov esi, eax
test esi, esi
jne 0x10019251
lea eax, [esp + 0x20]
push eax
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10019229
lea eax, [esp + 0x28]
push eax
call fcn.10019191
mov esi, eax
test esi, esi
jne 0x10019251
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x2c]
mov dword [esp + 0x3c], 0x100
call edi
lea ecx, [esp + 0x10]
test eax, eax
je 0x10019204
call fcn.10003d7a
push dword [esp + 0xc]
mov ecx, ebx
call fcn.10019118
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.10003d7a
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008a777
mov esp, ebp
pop ebp
ret 4

Function at 0x10019273
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x10]
xor eax, eax
stosd dword es:[edi], eax
push ecx
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx + 4]
xor edi, edi
or eax, 0x2001f
mov dword [ebp - 0x10], edi
push eax
push ecx
push ecx
push str.LocalServer32
push dword [ecx]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.1001937f
mov esi, eax
test esi, esi
jne 0x100192f3
test ebx, ebx
jne 0x100192c7
push 0xd
pop esi
jmp 0x100192f3
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x100192cc
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.10003d7a
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100194fc
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
xor esi, esi
mov dword [ebp - 8], edx
push esi
push esi
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x1001952d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10019588
push esi
push esi
push esi
push esi
push str.COM_Infrastructure
push edi
push 1
push 3
push 0x110
push 0xf01ff
push str.Installer_Service
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x10019564
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1001957f
lea eax, [ebp - 8]
mov dword [ebp - 8], str.Installer_Service
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret

Function at 0x10019600
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
xor esi, esi
mov edi, str.InstallerSvcEx2014
push esi
push edi
mov ebx, ecx
call fcn.1008dc90
push 0x104
push ebx
push edi
call fcn.100957f5
add esp, 0x18
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x1001965a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100196e5
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x10019677
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100196de
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1001968e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100196d7
mov dword [ebp - 0x28], 7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100196cc
cmp dword [ebp - 0x1c], 4
je 0x100196d4
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
test eax, eax
jg 0x10019695
jmp 0x100196d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edi, dword [ebp - 0x24]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret
Function at 0x1001a355
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
test edx, edx
je 0x1001a44a
mov esi, dword [ebp + 8]
test esi, esi
jle 0x1001a44a
or ecx, 0xffffffff
cmp esi, 8
jl 0x1001a428
push edi
mov edi, esi
shr edi, 3
imul eax, edi, 0xfffffff8
add esi, eax
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100d2830]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100d2830]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100d2830]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100d2830]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100d2830]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100d2830]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100d2830]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100d2830]
sub edi, 1
jne 0x1001a384
pop edi
test esi, esi
je 0x1001a444
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100d2830]
inc edx
sub esi, 1
jne 0x1001a42c
not ecx
mov eax, ecx
jmp 0x1001a44c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001a451
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov dword [ebp - 8], eax
call ebx
mov ebx, eax
mov dword [ebp - 4], 0x10
xor esi, esi
push dword [esi + str.37k_IF__y_d]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x18], eax
add esi, 4
cmp esi, 0x10
jl 0x1001a479
mov edi, dword [ebp - 8]
xor edx, edx
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shl ecx, 4
mov eax, ebx
add ecx, dword [ebp - 0x18]
shr eax, 5
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub dword [ebp - 4], 1
jne 0x1001a496
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001a4ef
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push dword [esi]
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call edi
mov dword [ebp - 4], eax
xor esi, esi
mov dword [ebp - 8], 0x10
push dword [esi + str.37k_IF__y_d]
call edi
mov dword [ebp + esi - 0x1c], eax
add esi, 4
cmp esi, 0x10
jl 0x1001a518
mov ebx, dword [ebp - 0xc]
mov esi, 0xe3779b90
mov edx, dword [ebp - 4]
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [esi + ebx]
xor ecx, eax
sub edx, ecx
mov ecx, edx
mov eax, edx
shl ecx, 4
add ecx, dword [ebp - 0x1c]
shr eax, 5
add eax, dword [ebp - 0x18]
xor ecx, eax
lea eax, [esi + edx]
xor ecx, eax
lea esi, [esi + 0x61c88647]
sub ebx, ecx
sub dword [ebp - 8], 1
jne 0x1001a537
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
mov dword [ebp - 4], edx
call edi
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
push eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001aa0f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.1008dc90
add esp, 0xc
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x1001aa6a
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x1001aa81
cmp dword [ebp - 0x11c], 6
jne 0x1001aa81
cmp dword [ebp - 0x118], 0
jne 0x1001aa81
xor eax, eax
inc eax
jmp 0x1001aa83
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1008a777
mov esp, ebp
pop ebp
ret

Function at 0x1001aa92
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.1008dc90
add esp, 0xc
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x1001aaed
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x1001ab01
cmp dword [ebp - 0x11c], 6
jne 0x1001ab01
xor eax, eax
inc eax
cmp dword [ebp - 0x118], eax
jae 0x1001ab03
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1008a777
mov esp, ebp
pop ebp
ret
Function at 0x1001ae46
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
test edi, edi
jne 0x1001ae6b
xor eax, eax
jmp 0x1001af02
push esi
lea eax, [ebp - 0x218]
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001aeff
cmp dword [ebp - 0x218], esi
je 0x1001aeff
push 0x20c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.1008dc90
add esp, 0xc
mov dword [ebp - 0x214], 0x20b
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001aeef
push 0x103
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.100957f5
add esp, 0xc
inc esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1001af01
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret
Function at 0x1001af12
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x54
mov eax, 0x100bdae3
call fcn.1008b481
mov esi, edx
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x20]
mov dword [ebp - 0x48], eax
xor ebx, ebx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call fcn.1001aa0f
test eax, eax
jne 0x1001af52
call fcn.1001aa92
test eax, eax
je 0x1001b00a
cmp byte [ebp + 0xc], 0
je 0x1001b00a
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.1001ab12
push eax
lea ecx, [ebp - 0x40]
call fcn.1000284a
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.10001f53
mov edi, 0x100d1d18
push edi
call fcn.10001a48
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.10005760
mov edi, str.QMConfigTencentQQPCMgrDownloader
push edi
call fcn.10001a48
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.10005760
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0x2001f
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x20]
push eax
push reloc.WS2_32.dll_closesocket
call fcn.10003d94
test eax, eax
jne 0x1001affd
push esi
push dword [ebp - 0x48]
lea ecx, [ebp - 0x20]
call fcn.1001a9bb
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.10003d7a
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.10001f53
jmp 0x1001b052
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.10001f53
jmp 0x1001b059
lea eax, [ebp - 0x44]
push eax
push 0x20019
push ebx
push str.QMConfigTencentQQPCMgrDownloader
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001b059
push 4
pop eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x44]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test esi, esi
sete bl
lea ecx, [ebp - 0x20]
call fcn.10003d7a
mov eax, ebx
call fcn.1008b42b
ret