joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4152f0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x465100]
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 ecx, dword [esi]
push edi
push ecx
mov dword [ebp - 0x1c], eax
call ebx
mov edx, dword [esi + 4]
push edx
mov edi, eax
call ebx
mov esi, eax
xor ebx, ebx
mov eax, dword [ebx + 0x457670]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + ebx - 0x14], eax
add ebx, 4
cmp ebx, 0x10
jl 0x415322
mov eax, 0xe3779b90
mov dword [ebp - 0x18], 0x10
mov ecx, edi
shr ecx, 5
add ecx, dword [ebp - 8]
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0xc]
xor ecx, edx
lea edx, [eax + edi]
xor ecx, edx
sub esi, ecx
mov ecx, esi
shr ecx, 5
add ecx, dword [ebp - 0x10]
mov edx, esi
shl edx, 4
add edx, dword [ebp - 0x14]
xor ecx, edx
lea edx, [eax + esi]
xor ecx, edx
sub edi, ecx
add eax, 0x61c88647
dec dword [ebp - 0x18]
jne 0x415347
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov ebx, dword [ebp - 0x1c]
push esi
mov dword [ebx], eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx + 4], eax
xor ecx, ebp
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret

Function at 0x4155e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x45aa64
push eax
lea ecx, [ebp - 4]
xor esi, esi
push ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call fcn.0043db0e
mov eax, dword [ebp - 4]
add esp, 0xc
cmp eax, esi
jne 0x41560f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 2
push esi
push eax
call fcn.0043e03f
mov edx, dword [ebp - 4]
push edx
call fcn.0043df50
mov esi, eax
add esp, 0x10
cmp esi, 0x2800
jge 0x4156bd
cmp esi, 0xffffffff
je 0x4156bd
push ebx
push edi
push esi
call fcn.0043b629
mov edi, eax
lea eax, [esi + 0x40]
push eax
mov dword [ebp - 8], eax
call fcn.0043b629
push esi
push 0
push edi
mov ebx, eax
call fcn.0043f7e0
mov eax, dword [ebp - 8]
push eax
push 0
push ebx
call fcn.0043f7e0
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
call fcn.0043e03f
mov edx, dword [ebp - 4]
push edx
push esi
push 1
push edi
call fcn.0043dd9f
lea eax, [ebp - 8]
push eax
push ebx
mov edx, esi
mov ecx, edi
call fcn.004153b0
add esp, 0x44
test al, al
je 0x4156ac
mov ecx, dword [ebp + 8]
push ecx
mov eax, ebx
call fcn.00413130
add esp, 4
mov dword [ebp - 0xc], 1
push ebx
call fcn.0043c87e
push edi
call fcn.0043c87e
add esp, 8
pop edi
pop ebx
mov edx, dword [ebp - 4]
push edx
call fcn.0043e128
mov eax, dword [ebp - 0xc]
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4156e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45fde8
push 0x443640
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x465100]
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
xor eax, eax
mov word [ebp - 0x430], ax
push 0x410
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x42e]
push ecx
call fcn.0043f7e0
add esp, 0xc
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x43c], ebx
push 0x208
lea edx, [ebp - 0x430]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
je 0x4157aa
lea ecx, [edi + 4]
push ecx
call fcn.0043bdae
add esp, 4
mov esi, eax
mov dword [ebp - 0x434], esi
cmp esi, ebx
je 0x4157aa
push esi
push edi
push ebx
lea edx, [ebp - 0x430]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4157b6
push esi
call fcn.0043bd74
add esp, 4
mov dword [ebp - 0x434], ebx
mov dword [ebp - 4], 0xfffffffe
jmp 0x415838
mov dword [ebp - 0x438], ebx
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x438]
push ecx
push 0x45812c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41579b
mov eax, dword [ebp - 0x438]
movzx edx, word [eax + 0xa]
mov dword [0x49bf3c], edx
movzx ecx, word [eax + 8]
mov dword [0x49bf40], ecx
movzx edx, word [eax + 0xe]
mov dword [0x49bf44], edx
movzx eax, word [eax + 0xc]
mov dword [0x49bf48], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x41583a
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.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x4159c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45309b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10c4
call fcn.0043fbd0
mov eax, dword [0x465100]
xor eax, esp
mov dword [esp + 0x10c0], eax
push ebx
push esi
push edi
mov eax, dword [0x465100]
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 [0x49bf38], ebx
jne 0x415a2d
call fcn.004156e0
test eax, eax
je 0x415a3f
mov dword [0x49bf38], 1
mov ebx, dword [0x49bf44]
mov esi, dword [0x49bf40]
mov edi, dword [0x49bf3c]
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.004158d0
xor edx, edx
push 0xffe
push edx
lea eax, [esp + 0xd6]
push eax
mov word [esp + 0xd8], dx
call fcn.0043f7e0
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 0x415c22
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.0043c889
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 0x415c50
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 0x415c83
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043bc47
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.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x4169d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x465100]
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.0043f7e0
add esp, 0xc
push 0
mov eax, 0x457794
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 0x416a3a
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
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.0040c8b0
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
pop edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416a72
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.0043b634
mov esp, ebp
pop ebp
ret

Function at 0x416f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x465100]
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 0x41702b
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0043f7e0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x417018
push str._rundll32.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0043c8f2
mov eax, dword [edi + 0x50]
add esp, 0xc
push 5
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov esi, edi
call fcn.0040a390
lea esi, [edi + 0x54]
mov ebx, eax
call fcn.00408850
mov dword [edi + 0x48], 0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
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.0043b634
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x54]
cmp dword [eax - 0xc], ebx
jle 0x417058
cmp dword [edi + 0x4c], ebx
je 0x417058
push 0
push 0x457794
push eax
mov esi, edi
call fcn.0040a390
lea esi, [edi + 0x54]
mov ebx, eax
call fcn.00408850
mov dword [edi + 0x4c], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x417160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x465100]
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 0x417192
lea esi, [edi + 0x29]
jmp 0x4171a4
cmp edi, 3
jne 0x41719c
lea esi, [edi + 2]
jmp 0x4171a4
cmp edi, 1
jne 0x4171a4
lea esi, [edi + 0x19]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0043f7e0
add esp, 0xc
test edi, edi
jne 0x4171e0
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20c]
jmp 0x417209
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 0x417209
mov ecx, 0x457794
push ebx
call fcn.004086e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret 8
Function at 0x418090
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451516
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x465100]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x465100]
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 0x4180e0
xor eax, eax
jmp 0x41828d
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4180f5
mov eax, 1
jmp 0x41828d
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.0043f7e0
push esi
lea edx, [esp + 0x54]
push 0x104
push edx
call fcn.0043c8f2
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 0x4181d1
jmp 0x418152
xor edi, edi
cmp ebx, dword [ebp + 0xc]
jge 0x4181cd
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 0x418171
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.004188e0
mov byte [esp + 0x260], 0
cmp dword [esp + 0x3c], 8
jb 0x4181bd
mov edx, dword [esp + 0x28]
push edx
call fcn.0043bc47
add esp, 4
lea eax, [esp + 0x44]
push eax
inc ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x418150
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 0x418245
lea edx, [edi*8]
sub edx, edi
lea esi, [esi + edx*4]
lea esp, [esp]
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x41820e
mov eax, dword [esi]
jmp 0x418210
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41823b
cmp dword [esi + 0x14], ebx
jb 0x418224
mov eax, dword [esi]
jmp 0x418226
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41823b
mov dword [esp + 0x14], 1
sub esi, 0x1c
dec edi
jns 0x418200
mov esi, dword [esp + 0x18]
test esi, esi
je 0x418289
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp ebx, edi
je 0x418280
cmp dword [esi + 0x14], 8
jb 0x418266
mov eax, dword [esi]
push eax
call fcn.0043bc47
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 0x418255
push ebx
call fcn.0043bc47
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.0043b634
mov esp, ebp
pop ebp
ret 8
Function at 0x41b710
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.0043f7e0
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 0x41c3e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x465100]
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.0043f7e0
push 0
push esi
push str._s_c
push 0x208
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0043c8a7
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.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x41c4b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451f98
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x465100]
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 [0x4660e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4660e4
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.00408990
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.004086e0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0041c260
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 0x41c564
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 0x41c5d9
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 0x41c5ff
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 0x41c620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451f58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x465100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [0x4660e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4660e4
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.00408990
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.004086e0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0041c260
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 0x41c6d1
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 0x41c716
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 0x41c73c
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 0x41ca00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x465100]
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 0x41cbb0
test esi, esi
je 0x41cbb0
mov eax, dword [0x4660e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4660e4
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.00408990
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.004086e0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0041c260
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 0x41cabe
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
jmp 0x41cb8a
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 0x41cb77
mov eax, dword [esi]
push eax
call fcn.0043bdae
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 0x41cb3e
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
call fcn.00408780
lea eax, [ebp + 8]
call fcn.00408780
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.00408780
lea eax, [ebp + 8]
call fcn.00408780
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 0x41cbb0
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 0x41cbd6
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