joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472a10
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 0x472a42
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jg 0x472a60
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
jne 0x472a7c
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jg 0x472a99
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x472ab1
pop edi
pop esi
lea eax, [ebx - 5]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
test eax, eax
jg 0x472ace
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jge 0x472ae8
pop edi
pop esi
mov eax, 0xfffffff9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
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 0x472af0
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 0x472b46
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 0x472b20
mov edi, dword [ebp + 0x18]
xor esi, esi
sub edi, ebx
xor edx, edx
nop dword [eax]
inc edx
and edx, 0x800000ff
jns 0x472b81
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [ebp + edx - 0x104]
movzx eax, cl
add esi, eax
and esi, 0x800000ff
jns 0x472b9d
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 0x472b70
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de51d
mov esp, ebp
pop ebp
ret
Function at 0x472bf0
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 0x472c25
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
test esi, esi
jg 0x472c3f
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x472c57
pop edi
pop esi
lea eax, [ebx - 3]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jg 0x472c74
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
jne 0x472c90
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jg 0x472cad
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jge 0x472cc7
pop edi
pop esi
mov eax, 0xfffffff9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
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 0x472cd0
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 0x472d26
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 0x472d00
mov edi, dword [ebp + 0x10]
xor esi, esi
sub edi, ebx
xor edx, edx
nop dword [eax]
inc edx
and edx, 0x800000ff
jns 0x472d61
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [ebp + edx - 0x104]
movzx eax, cl
add esi, eax
and esi, 0x800000ff
jns 0x472d7d
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 0x472d50
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de51d
mov esp, ebp
pop ebp
ret
Function at 0x472dd0
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 0x472e07
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 0x472e22
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.004de51d
mov esp, ebp
pop ebp
ret
Function at 0x4731a0
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 0x4732c1
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebp + 0x14]
shr edx, 1
shl edx, 2
cmp dword [eax], edx
jb 0x4732c1
mov ecx, dword [ebp + 0x10]
push ebx
cmp edi, 2
jbe 0x473251
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 0x4731f0
test edi, edi
je 0x4732ad
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 0x47329b
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 0x4732aa
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 0x4787c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4787cb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004787e0
Function at 0x479d70
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 0x479e35
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 0x479e35
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 0x479e3e
mov edi, dword [esi]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x479ddc
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 0x479e33
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 0x479e1c
push dword [eax - 8]
push eax
call fcn.004e38fd
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x479e3e
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x479e3e
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 0x479e50
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 0x479eb3
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 0x479eb3
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 0x47a250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50eaf5
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 0x47a336
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
setne cl
mov dword [esi + 0x24], eax
call fcn.0047e060
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 0x47a314
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], 4
test eax, eax
je 0x47a317
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 0x47a314
cmp dword [ebp + 0xc], 4
cmove edi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0
test eax, eax
je 0x47a326
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
mov dword [esi + 0x18], edi
call fcn.0047c920
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 0x47bf50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50edad
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 0x47c144
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 0x535d90
seta byte [ebp - 0x38]
call fcn.0044c0b0
cmp dword [esi + 0x6c], 0
mov byte [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x64
jne 0x47c0ae
call fcn.0047cc40
test eax, eax
je 0x47c0ae
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.0047cd00
cmp dword [eax + 0x14], 8
jb 0x47c06a
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 0x47c0ae
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47c0a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c15e
push edx
push ecx
call fcn.004de50a
add esp, 8
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x47c0cb
push str.InitBeacon
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47c0cb
lea ecx, [ebp - 0x58]
push ecx
call eax
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x50], 1
cmp edx, 0x10
jb 0x47c102
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47c0f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c163
push edx
push ecx
call fcn.004de50a
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 0x47c144
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47c13a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c163
push edx
push ecx
call fcn.004de50a
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.004de51d
mov esp, ebp
pop ebp
ret
call fcn.004e36fa
call fcn.004e36fa
int3
Function at 0x47c2f0
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 0x47c42c
push 0xc8
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004e02e0
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 0x47c418
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 0x47c3a6
sub ecx, edx
lea eax, [esp + 0x38]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.0044a760
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.0047cba0
mov esi, dword [esp + 0x34]
mov edi, eax
mov ebx, edx
cmp esi, 8
jb 0x47c420
mov ecx, dword [esp + 0x20]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x47c402
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c44d
push esi
push ecx
call fcn.004de50a
add esp, 8
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47c434
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47c434
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.004de51d
mov esp, ebp
pop ebp
ret
call fcn.004e36fa
int3

Function at 0x47c880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ee3d
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 0x47c8fc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 4
test eax, eax
je 0x47c90a
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 0x47c8fc
cmp dword [ebp - 0x18], 4
cmove esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47c90a
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 0x47e570
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 0x47e5b0
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 0x47e5d0
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.004de51d
mov esp, ebp
pop ebp
ret

Function at 0x47ed00
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 0x47eded
mov eax, dword [edi + 0xc]
mov cl, byte [ebp + 8]
imul esi, eax, 0x3e8
test cl, cl
jne 0x47ed3e
imul esi, eax, 0x7d0
test esi, esi
jle 0x47eded
mov ebx, dword [sym.imp.WS2_32.dll_select]
nop dword [eax]
mov eax, dword [edi + 8]
test eax, eax
je 0x47ed60
cmp byte [eax], 0
je 0x47eded
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 0x47edab
push ecx
push 0
jmp 0x47edae
push 0
push ecx
push eax
call ebx
test eax, eax
jg 0x47edc4
sub esi, 0xc350
test esi, esi
jle 0x47eded
mov cl, byte [ebp + 8]
jmp 0x47ed50
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.004de51d
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.004de51d
mov esp, ebp
pop ebp
ret 4
Function at 0x47ee10
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 0x47ee69
mov eax, dword [edi + 8]
test eax, eax
je 0x47ee2d
cmp byte [eax], 0
je 0x47ee69
mov eax, dword [edi + 8]
test eax, eax
je 0x47ee39
cmp byte [eax], 0
je 0x47ee72
push 0
mov ecx, edi
call fcn.0047ed00
test al, al
je 0x47ee72
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x47ee72
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 0x47ee72
sub esi, eax
test esi, esi
jg 0x47ee21
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 0x480370
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e96e
mov eax, dword fs:[0]
push eax
push ecx
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 dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
cmp byte [0x5541e8], 0
jne 0x4803c2
push 0x3ff
push 0x5541e8
push str._ALLUSERSPROFILE_Application_DataTencentQQP3C4Mgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edi, dword [ebp + 8]
mov ecx, 0x5541e8
mov dword [edi], 0
lea edx, [ecx + 1]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4803e4
sub ecx, edx
push ecx
push 0x5541e8
mov ecx, edi
call fcn.0044c0b0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
cmp dword [ebx + 0x14], 0x10
jb 0x480415
mov ecx, dword [ebx]
mov esi, dword [edi + 0x14]
mov eax, esi
mov edx, dword [edi + 0x10]
sub eax, edx
mov ebx, dword [ebx + 0x10]
cmp ebx, eax
ja 0x480449
lea eax, [edx + ebx]
mov dword [edi + 0x10], eax
mov eax, edi
cmp esi, 0x10
jb 0x480435
mov eax, dword [edi]
push ebx
lea esi, [eax + edx]
push ecx
push esi
call fcn.004dfd60
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x48045a
push ebx
push ecx
mov byte [ebp + 0xc], 0
mov ecx, edi
push dword [ebp + 0xc]
push ebx
call fcn.0044ff20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8