joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4183e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x455f2b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10c4
call fcn.00442810
mov eax, dword [0x468100]
xor eax, esp
mov dword [esp + 0x10c0], eax
push ebx
push esi
push edi
mov eax, dword [0x468100]
xor eax, esp
push eax
lea eax, [esp + 0x10d8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
xor esi, esi
mov dword [esp + 0x14], eax
cmp dword [0x49efb8], ebx
jne 0x41844d
call fcn.00418100
test eax, eax
je 0x41845f
mov dword [0x49efb8], 1
mov ebx, dword [0x49efc4]
mov esi, dword [0x49efc0]
mov edi, dword [0x49efbc]
or edi, 0x10000
xor ecx, ecx
shld ecx, edi, 0x10
shl edi, 0x10
or edi, esi
xor edx, edx
or ecx, edx
mov esi, ecx
shld esi, edi, 0x10
xor eax, eax
shl edi, 0x10
xor ecx, ecx
or edi, ebx
or esi, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], eax
mov word [esp + 0x18], cx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10e0], eax
call fcn.004182f0
xor edx, edx
push 0xffe
push edx
lea eax, [esp + 0xd6]
push eax
mov word [esp + 0xd8], dx
call fcn.00442420
mov eax, dword [esp + 0x24]
mov ebx, 8
add esp, 0xc
mov dword [esp + 0x34], 0x740068
mov dword [esp + 0x38], 0x700074
mov dword [esp + 0x3c], 0x2f003a
mov dword [esp + 0x40], 0x63002f
mov dword [esp + 0x44], 0x70002e
mov dword [esp + 0x48], 0x2e0063
mov dword [esp + 0x4c], 0x710071
mov dword [esp + 0x50], 0x63002e
mov dword [esp + 0x54], 0x6d006f
mov dword [esp + 0x58], 0x66002f
mov dword [esp + 0x5c], 0x670063
mov dword [esp + 0x60], 0x2d0069
mov dword [esp + 0x64], 0x690062
mov dword [esp + 0x68], 0x2f006e
mov dword [esp + 0x6c], 0x610070
mov dword [esp + 0x70], 0x6b0063
mov dword [esp + 0x74], 0x6f0063
mov dword [esp + 0x78], 0x66006e
mov dword [esp + 0x7c], 0x670069
mov dword [esp + 0x80], 0x53003f
mov dword [esp + 0x84], 0x720065
mov dword [esp + 0x88], 0x690076
mov dword [esp + 0x8c], 0x650063
mov dword [esp + 0x90], 0x440049
mov dword [esp + 0x94], 0x25003d
mov dword [esp + 0x98], 0x260064
mov dword [esp + 0x9c], 0x6c0043
mov dword [esp + 0xa0], 0x650069
mov dword [esp + 0xa4], 0x74006e
mov dword [esp + 0xa8], 0x650056
mov dword [esp + 0xac], 0x3d0072
mov dword [esp + 0xb0], 0x490025
mov dword [esp + 0xb4], 0x340036
mov dword [esp + 0xb8], 0x260064
mov dword [esp + 0xbc], 0x750067
mov dword [esp + 0xc0], 0x640069
mov dword [esp + 0xc4], 0x25003d
mov dword [esp + 0xc8], 0x73
cmp dword [esp + 0x2c], ebx
jae 0x418642
lea eax, [esp + 0x18]
push eax
push esi
push edi
push 0xfb3
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0xe0]
push 0x800
push eax
call fcn.0043f1f4
lea eax, [esp + 0xe8]
add esp, 0x1c
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418670
mov esi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xd0]
call fcn.004017a0
cmp dword [esp + 0x2c], ebx
jb 0x4186a3
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043e7d7
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x10d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10c0]
xor ecx, esp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
Function at 0x4193f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x208
mov esi, ecx
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00442420
add esp, 0xc
push 0
mov eax, 0x45a7a4
call fcn.004017a0
lea edx, [ebp - 0x210]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x41945a
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.TencentQQQQCloud
lea eax, [ebp - 0x210]
push eax
call edi
push str.QQCloud.DLL
lea ecx, [ebp - 0x210]
push ecx
call edi
lea ecx, [ebp - 0x210]
call fcn.00416c20
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
pop edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419492
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
call fcn.004017a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret

Function at 0x419990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x48], ebx
je 0x419a4b
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00442420
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x419a38
push str._rundll32.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0043f60c
mov eax, dword [edi + 0x50]
add esp, 0xc
push 5
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov esi, edi
call fcn.0040ccf0
lea esi, [edi + 0x54]
mov ebx, eax
call fcn.00408810
mov dword [edi + 0x48], 0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x54]
cmp dword [eax - 0xc], ebx
jle 0x419a78
cmp dword [edi + 0x4c], ebx
je 0x419a78
push 0
push 0x45a7a4
push eax
mov esi, edi
call fcn.0040ccf0
lea esi, [edi + 0x54]
mov ebx, eax
call fcn.00408810
mov dword [edi + 0x4c], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
Function at 0x419b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x210], 0
cmp edi, 2
jne 0x419bb2
lea esi, [edi + 0x29]
jmp 0x419bc4
cmp edi, 3
jne 0x419bbc
lea esi, [edi + 2]
jmp 0x419bc4
cmp edi, 1
jne 0x419bc4
lea esi, [edi + 0x19]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00442420
add esp, 0xc
test edi, edi
jne 0x419c00
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20c]
jmp 0x419c29
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
or esi, 0x8000
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x20c]
test eax, eax
je 0x419c29
mov ecx, 0x45a7a4
push ebx
call fcn.004086c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret 8
Function at 0x41aab0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x454226
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x468100]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x468100]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
cmp esi, edi
jne 0x41ab00
xor eax, eax
jmp 0x41acad
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41ab15
mov eax, 1
jmp 0x41acad
push 0x206
lea ecx, [esp + 0x4a]
xor eax, eax
push edi
push ecx
mov dword [esp + 0x20], edi
mov word [esp + 0x50], ax
call fcn.00442420
push esi
lea edx, [esp + 0x54]
push 0x104
push edx
call fcn.0043f60c
xor esi, esi
add esp, 0x18
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x264], edi
xor ebx, ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x41abf1
jmp 0x41ab72
xor edi, edi
cmp ebx, dword [ebp + 0xc]
jge 0x41abed
xor ecx, ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41ab91
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x48]
lea esi, [esp + 0x2c]
call fcn.004017a0
mov ecx, esi
lea edi, [esp + 0x18]
mov byte [esp + 0x260], 1
call fcn.0041b2c0
mov byte [esp + 0x260], 0
cmp dword [esp + 0x3c], 8
jb 0x41abdd
mov edx, dword [esp + 0x28]
push edx
call fcn.0043e7d7
add esp, 4
lea eax, [esp + 0x44]
push eax
inc ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x41ab70
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea edi, [edx + ecx - 1]
test edi, edi
js 0x41ac65
lea edx, [edi*8]
sub edx, edi
lea esi, [esi + edx*4]
lea esp, [esp]
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x41ac2e
mov eax, dword [esi]
jmp 0x41ac30
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41ac5b
cmp dword [esi + 0x14], ebx
jb 0x41ac44
mov eax, dword [esi]
jmp 0x41ac46
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41ac5b
mov dword [esp + 0x14], 1
sub esi, 0x1c
dec edi
jns 0x41ac20
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41aca9
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp ebx, edi
je 0x41aca0
cmp dword [esi + 0x14], 8
jb 0x41ac86
mov eax, dword [esi]
push eax
call fcn.0043e7d7
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
cmp esi, edi
jne 0x41ac75
push ebx
call fcn.0043e7d7
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret 8
Function at 0x41e080
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call fcn.00442420
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x58], 0
pop esi
pop ebp
ret
Function at 0x41ed50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov esi, ecx
call fcn.00442420
push 0
push esi
push str._s_c
push 0x208
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0043f212
xor eax, eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], eax
add esp, 0x24
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], ax
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x22c]
mov edx, 0x14
lea eax, [ebp - 0x20c]
push ecx
mov dword [ebp - 0x228], 3
mov word [ebp - 0x21c], dx
mov dword [ebp - 0x224], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
sete al
xor ecx, ebp
pop esi
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
Function at 0x41ee20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454d38
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x468100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [0x4690e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4690e4
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
lea edi, [ebp - 0x14]
mov dword [ebp - 0x20], esp
mov ebx, esp
call fcn.00408970
add eax, 0x10
mov dword [ebx], eax
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push eax
mov ecx, str.SOFTWARETencentBackupDownloader
mov byte [ebp - 4], 2
call fcn.004086c0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0041ebd0
mov edi, dword [ebp - 0x14]
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
push 0x20006
push 0
push edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41eed4
lea edx, [ebp - 0x10]
push edx
push edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ecx, dword [ebp - 0x10]
mov eax, esi
xor eax, 0xa234
rol eax, 2
mov dword [ebp - 0x18], eax
xor esi, 0x456b
mov eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
rol eax, 3
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push str.BitmapValue1
push ecx
call esi
mov eax, dword [ebp - 0x10]
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push 0
push str.BitmapValue2
push eax
call esi
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ef49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ef6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
Function at 0x41ef90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x468100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [0x4690e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4690e4
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
lea esi, [ebp - 0x14]
mov dword [ebp - 0x18], esp
mov edi, esp
call fcn.00408970
add eax, 0x10
mov dword [edi], eax
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push eax
mov ecx, str.SOFTWARETencentBackupDownloader
mov byte [ebp - 4], 2
call fcn.004086c0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0041ebd0
mov esi, dword [ebp - 0x14]
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
push 0x20006
push 0
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41f041
lea edx, [ebp - 0x10]
push edx
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
push eax
push ecx
push 3
push 0
push str.BufferValue
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f086
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f0ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x41f370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454c78
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x468100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], 0
je 0x41f520
test esi, esi
je 0x41f520
mov eax, dword [0x4690e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4690e4
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
lea edi, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ebx, esp
call fcn.00408970
add eax, 0x10
mov dword [ebx], eax
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push eax
mov ecx, str.SOFTWARETencentBackupDownloader
mov byte [ebp - 4], 2
call fcn.004086c0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0041ebd0
mov edi, dword [ebp - 0x14]
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
push edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41f42e
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
jmp 0x41f4fa
mov edx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.BufferValue
push edx
mov dword [ebp - 0x18], 0
call ebx
test eax, eax
jne 0x41f4e7
mov eax, dword [esi]
push eax
call fcn.0043e93e
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
add esp, 4
push esi
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.BufferValue
push edx
mov dword [edi], eax
call ebx
test eax, eax
jne 0x41f4ae
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
call fcn.00408870
lea eax, [ebp + 8]
call fcn.00408870
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], 0
lea eax, [ebp - 0x14]
mov dword [esi], 0
call fcn.00408870
lea eax, [ebp + 8]
call fcn.00408870
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esi], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f520
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f546
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWARETencentBackupDownloader
push closesocket
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41f59b
mov dword [esi], 0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
mov eax, 4
push 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push str.times
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41f5e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SOFTWARETencentBackupDownloader
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41f621
lea ecx, [ebp - 4]
push ecx
push str.SOFTWARETencentBackupDownloader
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x41f621
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push esi
push 4
lea edx, [ebp + 8]
push edx
push 4
push 0
push str.times
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41f660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareTencentQQ2009
push closesocket
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f706
mov eax, dword [edi]
test eax, eax
jns 0x41f69c
push 0x80070057
call fcn.00407180
mov ecx, dword [esi]
mov edx, 1
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, eax
or edx, ecx
jge 0x41f6b6
mov ecx, esi
call fcn.00408a80
mov eax, dword [esi]
push edi
push eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0
push str.Install
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
je 0x41f70c
test eax, eax
je 0x41f6ea
push ecx
push eax
call fcn.0043f33f
add esp, 8
test eax, eax
js 0x41f692
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x41f692
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x41f722
push ecx
push eax
call fcn.0043f33f
add esp, 8
test eax, eax
js 0x41f692
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x41f692
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x41ffc0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x49fd00], 0
jne 0x42002f
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x420002
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
push str.upload_data.qq.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x420029
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
push 0x49fd00
call fcn.004424a0
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, dword [0x49fd00]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret

Function at 0x420370
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x2b0]
push eax
push 0x202
mov esi, ecx
mov edi, edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4203b9
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4203cc
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
mov ecx, 2
mov word [ebp - 0x120], cx
call fcn.0041ffc0
test eax, eax
je 0x4203eb
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
jmp 0x4203f0
push str.121.14.102.16
push 0x45e584
push 0x40
push 0x49fd08
call fcn.0044002f
add esp, 0x10
push 0x49fd08
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x1bb
mov dword [ebp - 0x11c], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x120]
push edx
push ebx
mov word [ebp - 0x11e], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4203b3
test esi, esi
jle 0x420457
push 0
push esi
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
sub esi, eax
add edi, eax
test esi, esi
jg 0x420444
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00442420
add esp, 0xc
push 0
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
lea edx, [ebp - 0x110]
push str.RESULT:
push edx
call fcn.004412a0
add esp, 8
test eax, eax
je 0x4204c2
add eax, 7
cmp byte [eax], 0x20
jne 0x4204b6
lea esp, [esp]
inc eax
cmp byte [eax], 0x20
je 0x4204b0
xor ecx, ecx
cmp byte [eax], 0x31
sete cl
mov esi, ecx
jmp 0x4204c4
xor esi, esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret