joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ec60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x47ec85
push eax
call esi
mov eax, dword [edi + 8]
mov dword [edi], 0xffffffff
mov byte [edi + 4], 0
test eax, eax
je 0x47ec9f
cmp byte [eax], 0
je 0x47ed76
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47eceb
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x1c]
push 4
push eax
push 0x1002
push 0xffff
push ebx
mov dword [ebp - 0x1c], 0x10000
call esi
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x1001
push 0xffff
push ebx
call esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], ebx
cmp ebx, 0xffffffff
je 0x47ed5c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 0x18], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x47ed4b
cmp eax, 0xffffffff
jne 0x47ed5c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x47ed5c
push 1
mov ecx, edi
call fcn.0047ee10
test al, al
je 0x47ed5c
mov byte [edi + 4], 1
cmp byte [edi + 4], 0
jne 0x47ed76
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x47ed6c
push eax
call esi
mov dword [edi], 0xffffffff
mov byte [edi + 4], 0
mov al, byte [edi + 4]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a474b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47ed90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 4], 0
je 0x47edfc
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, ebx
test ebx, ebx
jle 0x47edec
nop dword [eax]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x47edbc
cmp byte [ecx], 0
je 0x47eddf
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x47edec
mov eax, dword [ebp + 8]
push 0
sub eax, esi
push esi
add eax, ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x47edec
sub esi, eax
test esi, esi
jg 0x47edb0
test eax, eax
jle 0x47edec
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
pop ebx
or eax, 0xffffffff
pop edi
pop ebp
ret 8
or eax, 0xffffffff
pop edi
pop ebp
ret 8
Function at 0x47ee10
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x511070]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
je 0x47eeed
mov bl, byte [ebp + 8]
imul esi, dword [edi + 0xc], 0x3e8
test bl, bl
jne 0x47ee48
add esi, esi
test esi, esi
jle 0x47eeed
mov eax, dword [edi + 8]
mov ecx, dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x47ee66
cmp byte [eax], 0
je 0x47eeed
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x128], eax
inc eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x124], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0xc350
push edx
lea edx, [esp + 0x20]
test bl, bl
je 0x47eeb1
push edx
push 0
jmp 0x47eeb4
push 0
push edx
push eax
call ecx
test eax, eax
jg 0x47eec3
sub esi, 0xc350
jmp 0x47ee48
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004a474b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x22c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a474b
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
push edi
mov edi, ecx
test ebx, ebx
jle 0x47eff9
mov eax, dword [edi + 8]
test eax, eax
je 0x47efc9
cmp byte [eax], 0
je 0x47eff9
mov eax, dword [edi + 8]
test eax, eax
je 0x47efc9
cmp byte [eax], 0
je 0x47f002
push 0
mov ecx, edi
call fcn.0047ee10
test al, al
je 0x47f002
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x47f002
mov eax, dword [ebp + 8]
push 0
sub eax, esi
push esi
add eax, ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x47f002
sub esi, eax
test esi, esi
jg 0x47efb1
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x47f010
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d87bd
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1a4], edi
mov eax, dword [0x51530c]
xorps xmm0, xmm0
mov dword [edi], 0
mov dword [edi + 4], vtable.._AV__Thread_U__BindMember0_VTransportMgr_DataTransport__P812_AEXPAX_Z_fund___fund__.0
mov dword [edi + 8], 0
mov dword [edi + 0x14], edi
mov dword [edi + 0x18], 0x480220
mov byte [edi + 0x1c], 1
mov dword [ebp - 0x1a8], edi
movq qword [edi + 0xc], xmm0
mov dword [ebp - 4], 0
lea esi, [edi + 0x24]
mov dword [edi + 0x20], eax
mov dword [ebp - 0x1a4], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00483210
mov dword [esi], eax
mov byte [ebp - 4], 1
lea esi, [edi + 0x2c]
mov dword [ebp - 0x1a4], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00483160
mov dword [esi], eax
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x43c]
mov byte [edi + 0x34], al
mov byte [ecx], 0
mov byte [edi + 0x43d], 0
mov byte [edi + 0x43e], 1
mov dword [edi + 0x440], 0
mov dword [edi + 0x444], 0
mov dword [edi + 0x448], 0
lea eax, [edi + 0x44c]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x47f119
mov eax, dword [eax]
mov byte [eax], 0
xor eax, eax
lea esi, [edi + 0x474]
mov word [edi + 0x464], ax
mov dword [edi + 0x468], eax
mov dword [edi + 0x46c], eax
mov dword [edi + 0x470], eax
mov dword [ebp - 0x1a4], esi
mov dword [esi], 0xffffffff
mov byte [esi + 4], al
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0x2710
push ecx
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 5
call fcn.00481930
mov byte [esi + 0x1c], 1
lea eax, [ebp - 0x1a0]
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x47f183
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x400
lea eax, [edi + 0x38]
mov byte [ebp - 4], 7
push 0
push eax
call fcn.004a73c0
add esp, 0xc
cmp byte [edi + 0x34], 0
je 0x47f1a7
mov ecx, edi
call fcn.0047f4d0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, edi
mov dword [edi + 0x438], eax
call fcn.0047f3f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret 8

Function at 0x47f3f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x43c], 0
jne 0x47f459
push edi
push dword [esi + 0x438]
mov byte [esi + 0x43c], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edi, [esi + 4]
lea ecx, [ebp - 4]
mov byte [edi + 0x18], 0
push ecx
push 0
lea eax, [edi + 8]
mov dword [edi + 0xc], 0
mov dword [eax], edi
push eax
push 0x481ea0
push 0
push 0
call fcn.004ae850
xor ecx, ecx
add esp, 0x18
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [edi + 4], eax
test eax, eax
jne 0x47f458
mov byte [edi + 0x18], 1
mov byte [esi + 0x43c], cl
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x480590
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
cmp dword [edi + 0x14], 0x10
jb 0x4805b2
mov ecx, dword [edi]
jmp 0x4805b4
mov ecx, edi
call fcn.00480500
test eax, eax
je 0x48062e
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x48062e
mov dword [ebx + 0x468], 0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea ecx, [ebx + 0x2c]
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.00483920
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x24]
mov edx, ebx
mov dword [ecx + 0x28], ebx
mov dword [ecx + 0x2c], esi
lea ecx, [ebp - 0x20]
call fcn.0047ebb0
mov ecx, dword [ebp - 0xc]
cmp ecx, 0x10
jb 0x480619
inc ecx
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call fcn.004339b0
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret 4
inc dword [ebx + 0x468]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea ecx, [ebp - 0x2c]
mov esi, eax
push ecx
lea ecx, [ebx + 0x2c]
call fcn.00483920
mov ecx, dword [ebp - 0x2c]
xor eax, eax
pop edi
mov dword [ecx + 0x2c], esi
mov dword [ecx + 0x28], 0
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a474b
mov esp, ebp
pop ebp
ret 4
Function at 0x485750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8e30
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
push 0x4fa6e0
xor edi, edi
mov dword [ebp - 4], edx
push eax
mov dword [ebp - 0x34], edi
call fcn.004b0151
add esp, 8
mov dword [ebp - 0x30], eax
test eax, eax
je 0x48594e
push 2
push edi
push eax
call fcn.004b043d
add esp, 0xc
push dword [ebp - 0x30]
call fcn.004b0a36
add esp, 4
mov dword [ebp - 0x44], eax
push edi
push edi
push dword [ebp - 0x30]
call fcn.004b043d
mov eax, dword [ebp - 0x44]
add esp, 0xc
cmp eax, 0xc800
jg 0x4858f1
inc eax
push 0x51423c
push eax
mov dword [ebp - 0x4c], eax
call fcn.004a4fda
add esp, 8
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4858f1
push dword [ebp - 0x4c]
push edi
push eax
call fcn.004a73c0
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov edi, dword [ebp - 0x34]
push dword [ebp - 0x30]
push eax
push 1
push edi
call fcn.004b0c0d
add esp, 0x10
lea ecx, [ebp - 0x2c]
push edi
call fcn.00438a50
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.00484c80
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00433970
push 0x51423c
push 0x2800
call fcn.004a4fda
mov edi, eax
add esp, 8
test edi, edi
je 0x4858f1
push 0x2800
push esi
push edi
call fcn.004a73c0
mov esi, dword [ebp - 0x40]
add esp, 0xc
mov eax, dword [ebp - 0x3c]
cmp esi, eax
je 0x4858ec
cmp ebx, esi
je 0x485895
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
call fcn.00438b50
mov eax, dword [ebp - 0x3c]
cmp dword [ebx + 0x10], 0
je 0x4858e5
push 0x27ff
mov ecx, ebx
call fcn.00433960
push eax
push edi
call fcn.004baca0
add esp, 0xc
mov eax, edi
mov cl, byte [eax]
cmp cl, 0x20
je 0x4858bf
cmp cl, 9
jne 0x4858c2
inc eax
jmp 0x4858b3
cmp byte [eax], 0x3b
je 0x4858e2
push 0x3b
push edi
call fcn.004a7280
add esp, 8
test eax, eax
je 0x4858d9
mov byte [eax], 0
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00484ed0
mov eax, dword [ebp - 0x3c]
add esi, 0x18
cmp esi, eax
jne 0x485882
mov esi, 1
push dword [ebp - 0x30]
call fcn.004b4992
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x48590c
push eax
call fcn.004a47b2
add esp, 4
test edi, edi
je 0x485919
push edi
call fcn.004a47b2
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x48594e
push dword [ebp - 0x48]
mov edx, dword [ebp - 0x3c]
push ecx
mov ecx, ebx
call fcn.00483b40
mov ecx, dword [ebp - 0x38]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push ebx
call fcn.004823c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x486770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8f78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x48689e
cmp byte [ebx + 0x3d], 0
je 0x48689e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4867c9
xor al, al
jmp 0x4868a0
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0044a7d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x48682f
sub eax, 1
je 0x486833
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x486886
xor bl, bl
jmp 0x486888
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x486868
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004bb8ac
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x48682b
cmp byte [ebx + 0x3d], 0
je 0x486886
test esi, esi
jne 0x4867f1
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0044a6b0
jmp 0x4867ee
mov bl, 1
cmp ecx, 0x10
jb 0x48689a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004339b0
mov al, bl
jmp 0x4868a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
Function at 0x488430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6190
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.0041c6e0
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.0041c6e0
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0xb
push str.BitDefender
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0041c4b0
push 0xb
push str.BitDefender
lea ecx, [ebp - 0x14]
call fcn.0041c4b0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x4884d2
push edi
push esi
push str.MoveOrCopyBD_from__ws__to__ws
push 0x515408
call fcn.0048be90
push 0
mov edx, edi
mov ecx, esi
call fcn.004876a0
add esp, 0x14
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4884f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x48850c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x488530
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20a
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004a73c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
lea eax, [ebp - 0x218]
push str.TSKSP
jb 0x48857e
push str..Global_s
jmp 0x488583
push str.._s
push 0x104
push eax
call fcn.00438860
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4885e8
push 0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], esi
push eax
push 0
push 0
push 4
lea eax, [ebp - 0x21c]
push eax
push 0x22e05c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x21c]
push str.UpdateSelfProtect__Leave__bEnable_d__bResult_d
push 0x515408
call fcn.0048c0f0
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.004a474b
mov esp, ebp
pop ebp
ret
Function at 0x4887a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d91eb
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4888c3
push 0x80
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004a73c0
push 0x80
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004a73c0
mov eax, dword [ebp - 0x114]
add esp, 0x18
mov dword [ebp - 0x118], 0x40
test eax, eax
je 0x4888c9
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
push 0
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4888c3
lea eax, [ebp - 0x90]
push eax
call fcn.004afca9
mov esi, eax
add esp, 4
cmp esi, 9
jne 0x4888bb
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x4888d6
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
push 0
push str.svcVersion
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4888bb
lea eax, [ebp - 0x110]
push eax
call fcn.004afca9
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x114]
jmp 0x4888cb
mov eax, dword [ebp - 0x114]
xor esi, esi
test eax, eax
je 0x4888d6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
Function at 0x488900
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d45f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x488948
xor ecx, ecx
jmp 0x48895f
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x488950
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004393e0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4889f0
test al, 0x10
je 0x4889dc
test al, 2
je 0x4889a6
push 0x90
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4889a6
push str.CreateDeepDirectory__failed_to_SetFileAttributes.
push 0x515408
call fcn.0048be90
add esp, 8
mov esi, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4889c0
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00433850
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
mov edx, 1
mov ecx, esi
call fcn.00488ab0
test eax, eax
jne 0x4889f0
xor esi, esi
jmp 0x4889ab
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4889a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4889a6
lea ecx, [ebp - 0x28]
call fcn.004886a0
cmp dword [ebp - 0x18], 0
jne 0x488a1c
xor esi, esi
jmp 0x4889ab
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00488900
test eax, eax
jne 0x488a37
xor esi, esi
jmp 0x4889ab
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4889a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4889a6
xor esi, esi
jmp 0x4889ab
Function at 0x489830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d93eb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x21c], edi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push 0
push eax
call fcn.004a73c0
add esp, 0xc
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x48989a
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
push 0
push 0x1a
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x489936
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4898e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0041cd40
push 0x10
push str.TencentQQPCMgr_
lea ecx, [ebp - 0x21c]
call fcn.0041c4b0
mov esi, dword [ebp - 0x21c]
mov ecx, esi
call fcn.00488900
test eax, eax
jne 0x489936
lea ecx, [ebp - 0x21c]
call fcn.0041caa0
mov esi, dword [ebp - 0x21c]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x48994e
mov eax, dword [edi]
jmp 0x489950
mov eax, edi
xor ecx, ecx
mov word [eax], cx
cmp word [esi], cx
je 0x48996f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489960
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.004393e0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x489997
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
Function at 0x4899c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9442
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], 0
call fcn.004a73c0
add esp, 0xc
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x489a36
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0
push 0x23
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x21c], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x489ab0
push str.TencentQQPCMgr_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
call fcn.00488900
test eax, eax
je 0x489ab0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489a92
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0041cd40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret