joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472910
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
test eax, eax
je 0x4729e8
xor ecx, ecx
cmp cx, word [eax]
je 0x4729e8
mov esi, dword [ebp + 0xc]
cmp dword [esi], ecx
jne 0x4729e8
push 0
push 0x80
push 3
push 0
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
push 1
push SysReAllocString
push eax
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4729e8
push edi
push 0
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4729c4
cmp edi, 0xffffffff
je 0x4729c4
push 0x525bb0
push edi
call fcn.004de5dd
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4729c4
push 0
push dword [ebp + 0x10]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4729c4
mov eax, dword [ebp + 0x10]
cmp dword [eax], edi
jne 0x4729c4
push ebx
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x4729d3
push eax
call fcn.004de0f8
add esp, 4
push ebx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x4729f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
push esi
push edi
test ecx, ecx
je 0x472a72
xor eax, eax
cmp ax, word [ecx]
je 0x472a72
test ebx, ebx
je 0x472a72
mov esi, dword [ebp + 8]
test esi, esi
je 0x472a72
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x472a72
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x472a60
cmp dword [ebp - 4], esi
jne 0x472a60
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472a80
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x472ab2
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jg 0x472ad0
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
jne 0x472aec
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jg 0x472b09
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x472b21
pop edi
pop esi
lea eax, [ebx - 5]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
test eax, eax
jg 0x472b3e
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jge 0x472b58
pop edi
pop esi
mov eax, 0xfffffff9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
xor edx, edx
xor ecx, ecx
nop dword [eax]
mov al, byte [edx + esi]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
mov byte [ebp + ecx - 0x104], cl
inc ecx
cdq
idiv edi
cmp ecx, 0x100
jl 0x472b60
xor edi, edi
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov dl, byte [ebp + esi - 0x104]
movzx eax, byte [ebp + esi - 0x204]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x472bb6
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + edi - 0x104], dl
mov byte [ebp + esi - 0x104], al
inc esi
cmp esi, 0x100
jl 0x472b90
mov edi, dword [ebp + 0x18]
xor esi, esi
sub edi, ebx
xor edx, edx
nop dword [eax]
inc edx
and edx, 0x800000ff
jns 0x472bf1
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [ebp + edx - 0x104]
movzx eax, cl
add esi, eax
and esi, 0x800000ff
jns 0x472c0d
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [ebp + esi - 0x104]
mov byte [ebp + esi - 0x104], cl
mov byte [ebp + edx - 0x104], al
movzx ecx, byte [ebp + esi - 0x104]
movzx eax, al
add ecx, eax
movzx eax, cl
movzx eax, byte [ebp + eax - 0x104]
xor al, byte [edi + ebx]
mov byte [ebx], al
inc ebx
sub dword [ebp + 0x1c], 1
jne 0x472be0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x472c60
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
jne 0x472c95
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
test esi, esi
jg 0x472caf
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x472cc7
pop edi
pop esi
lea eax, [ebx - 3]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jg 0x472ce4
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
jne 0x472d00
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jg 0x472d1d
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jge 0x472d37
pop edi
pop esi
mov eax, 0xfffffff9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
xor edx, edx
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [edx + edi]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
mov byte [ebp + ecx - 0x104], cl
inc ecx
cdq
idiv esi
cmp ecx, 0x100
jl 0x472d40
xor edi, edi
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov dl, byte [ebp + esi - 0x104]
movzx eax, byte [ebp + esi - 0x204]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x472d96
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + edi - 0x104], dl
mov byte [ebp + esi - 0x104], al
inc esi
cmp esi, 0x100
jl 0x472d70
mov edi, dword [ebp + 0x10]
xor esi, esi
sub edi, ebx
xor edx, edx
nop dword [eax]
inc edx
and edx, 0x800000ff
jns 0x472dd1
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [ebp + edx - 0x104]
movzx eax, cl
add esi, eax
and esi, 0x800000ff
jns 0x472ded
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [ebp + esi - 0x104]
mov byte [ebp + esi - 0x104], cl
mov byte [ebp + edx - 0x104], al
movzx ecx, byte [ebp + esi - 0x104]
movzx eax, al
add ecx, eax
movzx eax, cl
movzx eax, byte [ebp + eax - 0x104]
xor al, byte [edi + ebx]
mov byte [ebx], al
inc ebx
sub dword [ebp + 0x14], 1
jne 0x472dc0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x472e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x20], eax
push dword [esi]
call ebx
push dword [esi + 4]
mov dword [ebp - 0x1c], eax
call ebx
mov edi, dword [ebp - 0x18]
mov ebx, eax
xor esi, esi
push dword [edi + esi*4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x472e77
mov edi, dword [ebp - 0x1c]
xor edx, edx
lea esi, [edx + 0x10]
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shr ecx, 5
mov eax, ebx
add ecx, dword [ebp - 0x10]
shl eax, 4
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 - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x472e92
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x473210
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [edi + 2]
cmp ecx, 0xc0000000
jae 0x473331
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebp + 0x14]
shr edx, 1
shl edx, 2
cmp dword [eax], edx
jb 0x473331
mov ecx, dword [ebp + 0x10]
push ebx
cmp edi, 2
jbe 0x4732c1
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
mov ebx, edx
shr ebx, 1
inc ebx
nop dword [eax]
movzx eax, byte [esi]
sub edi, 3
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
add edx, edx
movzx eax, byte [eax + edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
and edx, 0xf
shr eax, 6
movzx eax, byte [eax + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
add esi, 3
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
add ecx, 4
sub ebx, 1
jne 0x473260
test edi, edi
je 0x47331d
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [esi]
and edx, 3
shl edx, 4
cmp edi, 1
jbe 0x47330b
movzx eax, byte [esi + 1]
shr eax, 4
movzx eax, byte [eax + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
mov byte [ecx + 3], 0x3d
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
jmp 0x47331a
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
add ecx, 4
mov edx, dword [ebp + 0x14]
mov eax, ecx
sub eax, dword [ebp + 0x10]
pop ebx
pop edi
mov dword [edx], eax
xor eax, eax
mov byte [ecx], 0
pop esi
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x478840
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x47884b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00478860
Function at 0x479df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
test eax, eax
je 0x479eb5
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
jne 0x479eb5
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0044f770
mov edx, dword [ebp - 4]
shr edx, 1
add edx, 1
js 0x479ebe
mov edi, dword [esi]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x479e5c
push edx
mov ecx, esi
call fcn.0044f7d0
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x479eb3
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x479e9c
push dword [eax - 8]
push eax
call fcn.004e34dd
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x479ebe
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x479ebe
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
mov word [eax + ecx*2], dx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00450260
int3

Function at 0x479ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x479f33
mov esi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.VerMode
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x479f33
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 1
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x47a2a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e6d5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x34]
mov dword [ebp - 0x14], 1
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [esi + 0x1c], 0
jne 0x47a386
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
setne cl
mov dword [esi + 0x24], eax
call fcn.0047e0c0
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esi + 0x1c], 1
mov dword [esi + 0x28], eax
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push 0x20019
push edi
push str.SoftwareTencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47a364
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], 4
test eax, eax
je 0x47a367
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push edi
push str.SupplyID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47a364
cmp dword [ebp + 0xc], 4
cmove edi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0
test eax, eax
je 0x47a376
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
mov dword [esi + 0x18], edi
call fcn.0047c970
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
lock inc dword [esi + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47bfa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e98d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x47c194
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 0x38], 0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x18], 0x3e8
mov byte [ebp - 0x1c], 1
push 0x10
push str.0WIN0DJ6VL4UY2KW
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0044c0b0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x3c], ecx
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 4
push eax
push str.DebugBeacon
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x74], 0
lea ecx, [ebp - 0x34]
push 0
push 0x535ba0
seta byte [ebp - 0x38]
call fcn.0044c0b0
cmp dword [esi + 0x6c], 0
mov byte [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x64
jne 0x47c0fe
call fcn.0047cc90
test eax, eax
je 0x47c0fe
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.0047cd50
cmp dword [eax + 0x14], 8
jb 0x47c0ba
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x5c]
mov dword [esi + 0x6c], eax
cmp edx, 8
jb 0x47c0fe
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47c0f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c1ae
push edx
push ecx
call fcn.004de0ea
add esp, 8
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x47c11b
push str.InitBeacon
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47c11b
lea ecx, [ebp - 0x58]
push ecx
call eax
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x50], 1
cmp edx, 0x10
jb 0x47c152
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47c148
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c1b3
push edx
push ecx
call fcn.004de0ea
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 0x10
jb 0x47c194
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47c18a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c1b3
push edx
push ecx
call fcn.004de0ea
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
call fcn.004e32da
call fcn.004e32da
int3
Function at 0x47c340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [0x550144]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
xorps xmm0, xmm0
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
movlpd qword [esp + 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47c47c
push 0xc8
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004dfec0
add esp, 0xc
mov dword [esp + 0x18], 0xc8
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.Version
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47c468
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
lea edx, [ecx + 2]
mov dword [esp + 0x34], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c3f6
sub ecx, edx
lea eax, [esp + 0x38]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.0044a770
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.0047cbf0
mov esi, dword [esp + 0x34]
mov edi, eax
mov ebx, edx
cmp esi, 8
jb 0x47c470
mov ecx, dword [esp + 0x20]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x47c452
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c49d
push esi
push ecx
call fcn.004de0ea
add esp, 8
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47c484
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47c484
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x104]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
xor ecx, esp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
call fcn.004e32da
int3

Function at 0x47c8d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ea1d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x20019
push esi
push str.SoftwareTencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47c94c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 4
test eax, eax
je 0x47c95a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push str.SupplyID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47c94c
cmp dword [ebp - 0x18], 4
cmove esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47c95a
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 esp, ebp
pop ebp
ret
Function at 0x47e5d0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push dword [esi]
mov dword [ebp - 0x20], eax
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x1c], eax
nop dword [eax + eax]
push dword [ebx + esi*4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x47e610
mov ebx, dword [ebp - 0x1c]
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
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, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x47e630
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret

Function at 0x47ed60
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x550144]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
je 0x47ee4d
mov eax, dword [edi + 0xc]
mov cl, byte [ebp + 8]
imul esi, eax, 0x3e8
test cl, cl
jne 0x47ed9e
imul esi, eax, 0x7d0
test esi, esi
jle 0x47ee4d
mov ebx, dword [sym.imp.WS2_32.dll_select]
nop dword [eax]
mov eax, dword [edi + 8]
test eax, eax
je 0x47edc0
cmp byte [eax], 0
je 0x47ee4d
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x124], eax
inc eax
test cl, cl
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 1
push ecx
lea ecx, [esp + 0x124]
mov dword [esp + 0x14], 0
push ecx
mov dword [esp + 0x1c], 0xc350
lea ecx, [esp + 0x20]
je 0x47ee0b
push ecx
push 0
jmp 0x47ee0e
push 0
push ecx
push eax
call ebx
test eax, eax
jg 0x47ee24
sub esi, 0xc350
test esi, esi
jle 0x47ee4d
mov cl, byte [ebp + 8]
jmp 0x47edb0
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004de0fd
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.004de0fd
mov esp, ebp
pop ebp
ret 4