joyce8/EMBER2024-capa huggingface dataset:
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.004de46d
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.004de46d
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.004de46d
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.004de46d
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.004de46d
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.004de46d
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.004de46d
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.004de46d
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.004de46d
mov esp, ebp
pop ebp
ret
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.004e384d
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 0x50ea35
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 0x50eced
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 0x535d00
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.004de45a
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.004de45a
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.004de45a
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.004de46d
mov esp, ebp
pop ebp
ret
call fcn.004e364a
call fcn.004e364a
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.004e0230
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.004de45a
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.004de46d
mov esp, ebp
pop ebp
ret
call fcn.004e364a
int3

Function at 0x47c880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ed7d
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.004de46d
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.004de46d
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.004de46d
mov esp, ebp
pop ebp
ret 4
Function at 0x480370
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e8ae
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.004dfcb0
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
Function at 0x480840
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x480862
mov ecx, dword [edi]
call fcn.004807b0
test eax, eax
je 0x480918
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x480918
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]
push edi
lea ecx, [ebx + 0x2c]
mov esi, eax
call fcn.00481d80
mov edi, dword [ebp - 0x24]
push edi
mov dword [eax], edi
mov dword [eax + 4], esi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
mov dword [ebp - 0x20], 0
mov edx, 0x535d00
mov dword [ebp - 0x10], 0
cmovne edx, eax
mov dword [ebp - 0xc], 0xf
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4808d3
sub eax, esi
lea ecx, [ebp - 0x20]
push eax
push edx
call fcn.0044c0b0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x48093a
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48090c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48094f
push edx
push ecx
call fcn.004de45a
add esp, 8
jmp 0x48093a
inc dword [ebx + 0x468]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea ecx, [ebx + 0x2c]
mov esi, eax
call fcn.00481d80
xor edi, edi
mov dword [eax], 0
mov dword [eax + 4], esi
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret 4
call fcn.004e364a
int3
Function at 0x485450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x48550a
cmp byte [esi + 0x3d], 0
je 0x48550a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4854f8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4854c0
sub eax, 1
je 0x4854c4
sub eax, 2
jne 0x4854f8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4854e1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004f5fcc
add esp, 0x10
cmp edi, eax
jne 0x4854f8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004de46d
mov esp, ebp
pop ebp
ret

Function at 0x485a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x485a3c
test al, 0x10
jne 0x485a3c
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x487160
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20a
xor esi, esi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004e0230
add esp, 0xc
push str.TSKSP
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov edx, str..Global_s
mov ecx, str.._s
lea eax, [ebp - 0x210]
cmovae ecx, edx
push ecx
push 0x104
push eax
call fcn.0048d050
add esp, 0x10
lea eax, [ebp - 0x210]
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x48720a
push esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
push esi
push esi
push 4
lea eax, [ebp + 8]
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 + 8]
push str.UpdateSelfProtect__Leave__bEnable_d__bResult_d
push 0x550bb8
call fcn.0048d880
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.004de46d
mov esp, ebp
pop ebp
ret

Function at 0x487240
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x554600], 0
jne 0x48733d
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [0x554600], 1
push 0
push eax
call fcn.004e0230
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4872f8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4872f1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov ecx, dword [ebp - 0x228]
cmp ecx, edi
je 0x4872e0
test ecx, ecx
je 0x4872e0
cmp ecx, 4
je 0x4872e0
lea eax, [ebp - 0x20c]
push str.360tray.exe
push eax
call fcn.004e3a87
add esp, 8
test eax, eax
je 0x487317
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4872b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x550c10], 2
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x550c10], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [0x550c10]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret