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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push 0x466a2c
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 0x18], edx
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00447c37
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x41918d
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 2
push 0
push eax
call fcn.0044802e
push dword [ebp - 4]
call fcn.00447b54
mov edi, eax
add esp, 0x10
cmp edi, 0x2800
jge 0x41931c
cmp edi, 0xffffffff
je 0x41931c
push esi
push edi
call fcn.0043e0c3
lea esi, [edi + 0x40]
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x10], esi
call fcn.0043e0c3
push edi
push 0
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call fcn.0043fa60
push esi
mov esi, dword [ebp - 0xc]
push 0
push esi
call fcn.0043fa60
push 0
push 0
push dword [ebp - 4]
call fcn.0044802e
push dword [ebp - 4]
push edi
push 1
push dword [ebp - 8]
call fcn.00448215
add esp, 0x3c
lea eax, [ebp - 0x10]
mov edx, edi
push eax
push esi
push ecx
mov ecx, dword [ebp - 8]
call fcn.00418ef0
add esp, 0xc
test al, al
je 0x41930a
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
mov edi, eax
xor ecx, ecx
mov edx, 2
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043e0c3
mov esi, eax
add esp, 4
test esi, esi
je 0x419302
lea eax, [edi*2 + 2]
push eax
push 0
push esi
call fcn.0043fa60
mov eax, dword [ebp - 0xc]
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
mov dword [ebp - 0x14], eax
inc eax
push eax
mov dword [ebp - 0x10], eax
call fcn.0043e0c3
mov edi, eax
add esp, 4
test edi, edi
jne 0x4192bc
push esi
call fcn.0043e0be
add esp, 4
jmp 0x419302
push dword [ebp - 0x10]
push 0
push edi
call fcn.0043fa60
add esp, 0xc
push 0
push 0
push dword [ebp - 0x14]
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4192e0
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x18]
push edi
call fcn.0040b870
push edi
call fcn.0043e0be
push esi
call fcn.0043e0be
add esp, 8
mov esi, dword [ebp - 0xc]
mov ebx, 1
push esi
call fcn.0043e0be
push dword [ebp - 8]
call fcn.0043e0be
add esp, 8
pop esi
push dword [ebp - 4]
call fcn.00447cf4
add esp, 4
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419330
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x46cd30
push 0x43f2d0
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x471080]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x412
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.0043fa60
add esp, 0xc
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x43c], 0
push 0x208
lea eax, [ebp - 0x430]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x419403
lea eax, [edi + 4]
push eax
call fcn.00442111
add esp, 4
mov esi, eax
mov dword [ebp - 0x434], esi
test esi, esi
je 0x419403
push esi
push edi
push 0
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x41940f
push esi
call fcn.0044210c
add esp, 4
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x419492
mov dword [ebp - 0x438], 0
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x438]
push eax
push 0x463f74
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4193f0
mov ecx, dword [ebp - 0x438]
movzx eax, word [ecx + 0xa]
mov dword [0x4a8124], eax
movzx eax, word [ecx + 8]
mov dword [0x4a8178], eax
movzx eax, word [ecx + 0xe]
mov dword [0x4a8120], eax
movzx eax, word [ecx + 0xc]
mov dword [0x4a8174], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x419494
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
Function at 0x419630
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459f1b
mov eax, dword fs:[0]
push eax
mov eax, 0x10c4
call fcn.0043e420
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x10d0]
mov dword [ebp - 0x10c4], 0
push eax
lea eax, [ebp - 0x10cc]
mov dword [ebp - 0x10c8], 0
push eax
lea edx, [ebp - 0x10c8]
mov dword [ebp - 0x10cc], 0
lea ecx, [ebp - 0x10c4]
call fcn.004194b0
mov edi, dword [ebp - 0x10c4]
xor esi, esi
or edi, 0x10000
mov dword [ebp - 0x10b0], 0
shld esi, edi, 0x10
xor eax, eax
mov dword [ebp - 0x10ac], 7
shl edi, 0x10
or edi, dword [ebp - 0x10c8]
shld esi, edi, 0x10
mov word [ebp - 0x10c0], ax
shl edi, 0x10
or edi, dword [ebp - 0x10cc]
lea ecx, [ebp - 0x10c0]
mov dword [ebp - 4], eax
call fcn.00419540
push 0x1000
lea eax, [ebp - 0x10a8]
push 0
push eax
call fcn.0043fa60
cmp dword [ebp - 0x10ac], 8
lea eax, [ebp - 0x10c0]
mov dword [ebp - 0xa8], 0x740068
cmovae eax, dword [ebp - 0x10c0]
push eax
push esi
push edi
push 0xfb3
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa4], 0x700074
push eax
mov dword [ebp - 0xa0], 0x2f003a
lea eax, [ebp - 0x10a8]
mov dword [ebp - 0x9c], 0x63002f
mov dword [ebp - 0x98], 0x70002e
mov dword [ebp - 0x94], 0x2e0063
mov dword [ebp - 0x90], 0x710071
mov dword [ebp - 0x8c], 0x63002e
mov dword [ebp - 0x88], 0x6d006f
mov dword [ebp - 0x84], 0x66002f
mov dword [ebp - 0x80], 0x670063
mov dword [ebp - 0x7c], 0x2d0069
mov dword [ebp - 0x78], 0x690062
mov dword [ebp - 0x74], 0x2f006e
mov dword [ebp - 0x70], 0x610070
mov dword [ebp - 0x6c], 0x6b0063
mov dword [ebp - 0x68], 0x6f0063
mov dword [ebp - 0x64], 0x66006e
mov dword [ebp - 0x60], 0x670069
mov dword [ebp - 0x5c], 0x53003f
mov dword [ebp - 0x58], 0x720065
mov dword [ebp - 0x54], 0x690076
mov dword [ebp - 0x50], 0x650063
mov dword [ebp - 0x4c], 0x440049
mov dword [ebp - 0x48], 0x25003d
mov dword [ebp - 0x44], 0x260064
mov dword [ebp - 0x40], 0x6c0043
mov dword [ebp - 0x3c], 0x650069
mov dword [ebp - 0x38], 0x74006e
mov dword [ebp - 0x34], 0x650056
mov dword [ebp - 0x30], 0x3d0072
mov dword [ebp - 0x2c], 0x490025
mov dword [ebp - 0x28], 0x340036
mov dword [ebp - 0x24], 0x260064
mov dword [ebp - 0x20], 0x750067
mov dword [ebp - 0x1c], 0x640069
mov dword [ebp - 0x18], 0x25003d
mov dword [ebp - 0x14], 0x73
push 0x800
push eax
call fcn.00409930
lea eax, [ebp - 0x10a8]
add esp, 0x30
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419870
sub eax, edx
mov ecx, ebx
sar eax, 1
push eax
lea eax, [ebp - 0x10a8]
push eax
call fcn.004017c0
mov edx, dword [ebp - 0x10ac]
cmp edx, 8
jb 0x4198ca
mov ecx, dword [ebp - 0x10c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4198c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4198eb
push edx
push ecx
call fcn.0043dbf3
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
call fcn.004420bc
int3
Function at 0x41a4e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x20a
lea eax, [ebp - 0x210]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.0043fa60
add esp, 0xc
mov ecx, ebx
push 0
push 0x4634cc
call fcn.004017c0
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x41a548
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push str.TencentQQQQCloud
push eax
call esi
push str.QQCloud.DLL
lea eax, [ebp - 0x210]
push eax
call esi
test edi, edi
je 0x41a57a
lea ecx, [ebp - 0x210]
call fcn.0040f980
lea edx, [ebp - 0x210]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41a583
sub edx, esi
lea eax, [ebp - 0x210]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.004017c0
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret

Function at 0x41a930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x48], edi
je 0x41a9de
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043fa60
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41a9cc
push str._rundll32.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00446478
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, esi
push 5
push dword [esi + 0x50]
push eax
call fcn.0040e320
lea ecx, [esi + 0x54]
mov edi, eax
call fcn.004093e0
mov eax, edi
mov dword [esi + 0x48], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x54]
push ebx
cmp dword [eax - 0xc], edi
jle 0x41aa0a
cmp dword [esi + 0x4c], edi
je 0x41aa0a
push 0
push 0x4634cc
push eax
call fcn.0040e320
lea ecx, [esi + 0x54]
mov edi, eax
call fcn.004093e0
mov dword [esi + 0x4c], 0
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
Function at 0x41ab60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a0cb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x21c], esi
cmp ebx, 2
jne 0x41aba6
lea edi, [ebx + 0x29]
jmp 0x41abbb
cmp ebx, 3
jne 0x41abb0
lea edi, [ebx + 2]
jmp 0x41abbb
cmp ebx, 1
mov eax, 0x1a
cmove edi, eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0043fa60
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
test ebx, ebx
jne 0x41ac40
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.00407b80
mov ecx, eax
test ecx, ecx
je 0x41ac8c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
call fcn.00409440
test al, al
jne 0x41ac6c
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ac20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00409600
jmp 0x41ac6c
push 0
push 0
or edi, 0x8000
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
jne 0x41ac62
lea eax, [ebp - 0x218]
push eax
jmp 0x41ac67
push 0x4634cc
call fcn.00409310
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00407690
int3
Function at 0x41b570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a1c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x471080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [esi]
mov edi, eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x65
push str.MYBIN
push edi
mov ecx, esi
call dword [edx + 0x50]
cmp dword [ebp - 0x10], 0
mov ebx, eax
je 0x41b632
push 0
push 0x80
push 1
push 0
push 2
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41b632
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ebx
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41b624
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, 1
jmp 0x41b634
xor esi, esi
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b655
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x41b674
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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 0x41f9d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x40
push 0
lea eax, [esi + 0x18]
push eax
call fcn.0043fa60
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 0x420880
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a570
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x471080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.00407b80
mov ecx, eax
test ecx, ecx
je 0x420a55
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push ecx
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x4208f9
cmp ecx, dword [esi - 0x10]
jne 0x4208f9
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x420923
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x420a5f
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
call fcn.00409570
add esp, 8
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 0x10]
mov dword [ecx], eax
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.00407b80
mov ecx, eax
test ecx, ecx
je 0x420a64
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.SOFTWARETencentBackupDownloader
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00409440
test al, al
jne 0x420970
push 0x21
push str.SOFTWARETencentBackupDownloader
mov ecx, esi
call fcn.00409600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004205b0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
add esp, 8
push eax
push 0x20006
push 0
push esi
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4209b1
lea eax, [ebp - 0x10]
push eax
push esi
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, ebx
xor eax, 0xa234
xor ebx, 0x456b
rol eax, 2
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push str.BitmapValue1
push dword [ebp - 0x10]
rol ebx, 3
mov dword [ebp - 0x20], ebx
call edi
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.BitmapValue2
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420a1f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x420a3e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407690
call fcn.004096f0
push 0x80004005
call fcn.00407690
int3
Function at 0x420a70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x471080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
call fcn.00407b80
mov ecx, eax
test ecx, ecx
je 0x420c17
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push ecx
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x420aec
cmp ecx, dword [esi - 0x10]
jne 0x420aec
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x420b16
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x420c21
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
call fcn.00409570
add esp, 8
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 0x10]
mov dword [ecx], eax
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.00407b80
mov ecx, eax
test ecx, ecx
je 0x420c26
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.SOFTWARETencentBackupDownloader
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00409440
test al, al
jne 0x420b63
push 0x21
push str.SOFTWARETencentBackupDownloader
mov ecx, esi
call fcn.00409600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004205b0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
add esp, 8
push eax
push 0x20006
push 0
push esi
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x420ba4
lea eax, [ebp - 0x10]
push eax
push esi
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push ebx
push dword [ebp - 0x1c]
push 3
push 0
push str.BufferValue
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420be1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x420c00
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407690
call fcn.004096f0
push 0x80004005
call fcn.00407690
int3
Function at 0x420e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a628
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x471080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x420ff7
test edi, edi
je 0x420ff7
call fcn.00407b80
mov ecx, eax
test ecx, ecx
je 0x42102f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
push ecx
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x20], esp
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x420ef9
cmp ecx, dword [esi]
jne 0x420ef9
lock inc dword [eax]
jmp 0x420f2c
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x421039
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea eax, [esi + 0x10]
mov edx, dword [esi + 4]
add ecx, 0x10
inc edx
push edx
push eax
call fcn.00409570
mov esi, dword [ebp - 0x1c]
add esp, 8
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 0x10]
mov dword [ecx], eax
push ecx
mov ecx, esp
mov byte [ebp - 4], 2
push str.SOFTWARETencentBackupDownloader
call fcn.00409310
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004205b0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
add esp, 8
push eax
push 1
push 0
push esi
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420fcb
push edi
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.BufferValue
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420fc2
push dword [edi]
call fcn.00442111
add esp, 4
mov dword [ebx], eax
push edi
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.BufferValue
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
test eax, eax
jne 0x420fc5
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
jmp 0x420fd9
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx], 0
mov dword [edi], 0
xor edi, edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x420ff9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x420ff9
xor edi, edi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42101b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407690
call fcn.004096f0
int3