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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp - 0x28], eax
push edi
cmp dword [0x10115ae0], 0
jne 0x1003bf96
mov word [ebp - 0x88], 0x47
mov word [ebp - 0x86], 0x6c
mov word [ebp - 0x84], 0x6f
mov word [ebp - 0x82], 0x62
mov word [ebp - 0x80], 0x61
mov word [ebp - 0x7e], 0x6c
mov word [ebp - 0x7c], 0x5c
mov word [ebp - 0x7a], 0x7b
mov word [ebp - 0x78], 0x45
mov word [ebp - 0x76], 0x43
mov word [ebp - 0x74], 0x33
mov word [ebp - 0x72], 0x32
mov word [ebp - 0x70], 0x39
mov word [ebp - 0x6e], 0x31
mov word [ebp - 0x6c], 0x41
mov word [ebp - 0x6a], 0x39
mov word [ebp - 0x68], 0x2d
mov word [ebp - 0x66], 0x32
mov word [ebp - 0x64], 0x38
mov word [ebp - 0x62], 0x45
mov word [ebp - 0x60], 0x37
mov word [ebp - 0x5e], 0x2d
mov word [ebp - 0x5c], 0x34
mov word [ebp - 0x5a], 0x30
mov word [ebp - 0x58], 0x33
mov word [ebp - 0x56], 0x36
mov word [ebp - 0x54], 0x2d
mov word [ebp - 0x52], 0x39
mov word [ebp - 0x50], 0x38
mov word [ebp - 0x4e], 0x44
mov word [ebp - 0x4c], 0x44
mov word [ebp - 0x4a], 0x2d
mov word [ebp - 0x48], 0x38
mov word [ebp - 0x46], 0x45
mov word [ebp - 0x44], 0x37
mov word [ebp - 0x42], 0x39
mov word [ebp - 0x40], 0x32
mov word [ebp - 0x3e], 0x41
mov word [ebp - 0x3c], 0x39
mov word [ebp - 0x3a], 0x34
mov word [ebp - 0x38], 0x35
mov word [ebp - 0x36], 0x30
mov word [ebp - 0x34], 0x30
mov word [ebp - 0x32], 0x34
mov word [ebp - 0x30], 0x7d
and word [ebp - 0x2e], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0xc
mov byte [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1003bfaf
pop ecx
pop ecx
test eax, eax
je 0x1003bf7d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x88]
push eax
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x10115ae0], eax
xor eax, eax
cmp dword [0x10115ae0], 0
setne al
pop edi
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.100771ba
leave
ret

Function at 0x1003c0ba
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.1003cc84
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x1003c0de
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x1003c11f
push dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.1003ccb5
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
call fcn.100094ad
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1003c11d
push 4
push 0
mov ecx, dword [ebp - 0xc]
call fcn.100094ad
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1003c0d7
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.1003cd3e
leave
ret
Function at 0x10040f3f
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0x100ddd30
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x10040f7b
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
leave
ret

Function at 0x100410de
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0x100ddd4c
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x1004111a
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
leave
ret
Function at 0x1004127d
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cb2c6
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x664], ecx
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 0x43c], 0
push 0x424
push 0
lea eax, [ebp - 0x438]
push eax
call fcn.100771d0
add esp, 0xc
and dword [ebp - 0x658], 0
and word [ebp - 0x654], 0
push 0x208
push 0
lea eax, [ebp - 0x652]
push eax
call fcn.100771d0
add esp, 0xc
lea ecx, [ebp - 0x440]
call fcn.10014b4b
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x654]
push eax
call fcn.100a9b76
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x10041394
lea eax, [ebp - 0x654]
push eax
lea ecx, [ebp - 0x440]
call fcn.10003c7e
lea ecx, [ebp - 0x440]
call fcn.10003bb7
push eax
push 0x5c
lea ecx, [ebp - 0x440]
call fcn.10003cb0
inc eax
push eax
lea eax, [ebp - 0x65c]
push eax
lea ecx, [ebp - 0x440]
call fcn.10014d4f
mov dword [ebp - 0x668], eax
mov eax, dword [ebp - 0x668]
mov dword [ebp - 0x66c], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x66c]
lea ecx, [ebp - 0x440]
call fcn.10003c65
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x65c]
call fcn.10014be9
mov eax, dword [ebp - 0x664]
push dword [eax + 8]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x100413af
jmp 0x10041403
mov dword [ebp - 0x43c], 0x428
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x100413ce
jmp 0x10041403
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x440]
call fcn.10041b76
test eax, eax
jne 0x100413f0
mov dword [ebp - 0x658], 1
jmp 0x10041403
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x100413ce
cmp dword [ebp - 0x10], 0xffffffff
je 0x10041412
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x658]
mov dword [ebp - 0x660], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.10014be9
mov eax, dword [ebp - 0x660]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100771ba
leave
ret

Function at 0x1004144a
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x10041486
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
leave
ret
Function at 0x10044f6a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
cmp dword [ebp + 0xc], 0
jne 0x100450a9
push 0x100e45e8
mov ecx, dword [ebp - 0x38]
add ecx, 8
call fcn.10005b69
push eax
call fcn.10077ee2
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100450a9
push 0x210
call fcn.10076ac2
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
push 0x210
push 0
push dword [ebp - 8]
call fcn.100771d0
add esp, 0xc
push dword [ebp - 4]
push 0x210
push 1
push dword [ebp - 8]
call fcn.1007dc25
add esp, 0x10
mov dword [ebp - 0x10], 0x420
push dword [ebp - 0x10]
call fcn.10076ac2
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
push 0x21
call fcn.10076ac2
pop ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push str.37k_IF__y_d
push 0x210
push dword [ebp - 8]
call fcn.100c06bc
add esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10045073
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x38]
add ecx, 0xc
call fcn.1004680a
and dword [ebp - 0x1c], 0
jmp 0x10045047
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jge 0x10045069
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x38]
add ecx, 0xc
call fcn.1004684d
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
mov cl, byte [ecx]
mov byte [eax], cl
jmp 0x10045040
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x24], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
call fcn.100771b5
pop ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
call fcn.1007a47b
pop ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
call fcn.1007a47b
pop ecx
push dword [ebp - 4]
call fcn.10078198
pop ecx
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x20], 1
leave
ret 8

Function at 0x1004522a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x10045243
jmp 0x10045271
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1004526a
jmp 0x10045271
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x10045278
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
and dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x10045291
jmp 0x100452bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100452b6
jmp 0x100452bd
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x100453cf
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cb295
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100f93e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.10004993
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.10045547
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CQQChannelDownload.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], vtable.CQQChannelDownload.1.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.10001714
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
and dword [eax + 0xc], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x10]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x30], 0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 8
Function at 0x100456ad
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp - 0x28], eax
push edi
cmp dword [0x10115ae4], 0
jne 0x10045845
mov word [ebp - 0x88], 0x47
mov word [ebp - 0x86], 0x6c
mov word [ebp - 0x84], 0x6f
mov word [ebp - 0x82], 0x62
mov word [ebp - 0x80], 0x61
mov word [ebp - 0x7e], 0x6c
mov word [ebp - 0x7c], 0x5c
mov word [ebp - 0x7a], 0x7b
mov word [ebp - 0x78], 0x30
mov word [ebp - 0x76], 0x43
mov word [ebp - 0x74], 0x35
mov word [ebp - 0x72], 0x43
mov word [ebp - 0x70], 0x41
mov word [ebp - 0x6e], 0x34
mov word [ebp - 0x6c], 0x35
mov word [ebp - 0x6a], 0x39
mov word [ebp - 0x68], 0x2d
mov word [ebp - 0x66], 0x32
mov word [ebp - 0x64], 0x33
mov word [ebp - 0x62], 0x45
mov word [ebp - 0x60], 0x44
mov word [ebp - 0x5e], 0x2d
mov word [ebp - 0x5c], 0x34
mov word [ebp - 0x5a], 0x65
mov word [ebp - 0x58], 0x39
mov word [ebp - 0x56], 0x32
mov word [ebp - 0x54], 0x2d
mov word [ebp - 0x52], 0x42
mov word [ebp - 0x50], 0x30
mov word [ebp - 0x4e], 0x42
mov word [ebp - 0x4c], 0x34
mov word [ebp - 0x4a], 0x2d
mov word [ebp - 0x48], 0x35
mov word [ebp - 0x46], 0x33
mov word [ebp - 0x44], 0x42
mov word [ebp - 0x42], 0x44
mov word [ebp - 0x40], 0x42
mov word [ebp - 0x3e], 0x46
mov word [ebp - 0x3c], 0x42
mov word [ebp - 0x3a], 0x44
mov word [ebp - 0x38], 0x31
mov word [ebp - 0x36], 0x36
mov word [ebp - 0x34], 0x38
mov word [ebp - 0x32], 0x42
mov word [ebp - 0x30], 0x7d
and word [ebp - 0x2e], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0xc
mov byte [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1003bfaf
pop ecx
pop ecx
test eax, eax
je 0x1004582c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x88]
push eax
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x10115ae4], eax
xor eax, eax
cmp dword [0x10115ae4], 0
setne al
pop edi
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.100771ba
leave
ret

Function at 0x100458cc
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [0x10115b14]
test eax, eax
jne 0x1004594d
mov byte [0x10115b14], 1
push 0x10112b50
call fcn.10045e71
pop ecx
push 0x10112b60
call fcn.10045e71
pop ecx
and word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.100771d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100771ba
leave
ret
Function at 0x1004bfdf
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x1004c011
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x1004c00e
push 0x10
xor eax, eax
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
dec ecx
jne 0x1004c032
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x10056259
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x100cb91e
call fcn.1007f6a6
mov esi, ecx
push str.CDownload::Init__
push 3
call fcn.100590cc
xor edi, edi
cmp dword [esi + 0xc], edi
pop ecx
pop ecx
je 0x10056284
xor eax, eax
inc eax
jmp 0x1005630e
cmp dword [esi + 0x64], edi
mov dword [esi + 0xb8], 0x5dc
jne 0x100562cc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x68], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x6c], eax
call ebx
mov dword [esi + 0x70], eax
lea eax, [esi + 0x74]
push eax
push edi
push esi
push 0x1005798f
push edi
push edi
call fcn.1007b853
add esp, 0x18
mov dword [esi + 0x64], eax
lea eax, [esi + 0x8c]
mov dword [ebp - 0x10], eax
add eax, 4
push eax
mov dword [ebp - 0x14], vtable.QQDectector::fund::lock::scoped_lock_class_QQDectector::fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
inc edi
lea eax, [esi + 0x78]
mov dword [ebp - 0x1c], edi
call fcn.10057fe1
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea esi, [ebp - 0x14]
call fcn.100584f7
mov eax, edi
call fcn.1007f745
ret

Function at 0x1005638f
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push 0x10
mov eax, 0x100cb91e
call fcn.1007f6a6
push str.CDownload::Uninit__
push 3
call fcn.100590cc
pop ecx
lea eax, [edi + 0x8c]
mov dword [ebp - 0x10], eax
pop ecx
add eax, 4
push eax
mov dword [ebp - 0x14], vtable.QQDectector::fund::lock::scoped_lock_class_QQDectector::fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [edi + 0x78]
mov dword [ebp - 0x1c], 2
call fcn.10057fe1
push dword [edi + 0x70]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
call ebx
lea esi, [ebp - 0x14]
call fcn.100584f7
push dword [edi + 0x68]
call ebx
push dword [edi + 0x70]
call ebx
cmp dword [edi + 0x64], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10056437
push 0x7530
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1005642e
push 0x3ff
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.Uninit::TerminateThread
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi + 0x64]
call esi
and dword [edi + 0x64], 0
push dword [edi + 0x70]
call esi
push dword [edi + 0x68]
call esi
push dword [edi + 0x6c]
call esi
call fcn.1007f745
ret
Function at 0x10057ca7
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x238
lea ebp, [esp - 4]
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp + 0x238], eax
push 0x20
mov eax, 0x100cd4d2
call fcn.1007f6a6
and word [ebp + 0x2c], 0
push 0x208
lea eax, [ebp + 0x2e]
push 0
push eax
call fcn.100771d0
add esp, 0xc
lea eax, [ebp]
push eax
push str.DownloadProxy.Downloader.1
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
sub esp, 0x10
lea esi, [ebp]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp + 0x2c]
movsd dword es:[edi], dword [esi]
call fcn.1005d7cc
add esp, 0x10
test eax, eax
je 0x10057da6
lea ecx, [ebp + 0x10]
call fcn.10001714
and dword [ebp - 4], 0
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x10]
call fcn.1000e515
lea edi, [ebp + 0x10]
call fcn.10057dc9
push eax
push 0
mov ecx, edi
call fcn.100017ec
push 0xffffffffffffffff
mov ebx, edi
call fcn.10057e2a
inc eax
push eax
mov ecx, edi
call fcn.100017ec
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.10001885
mov esi, eax
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.100018a7
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.10001885
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.10058e49
add esp, 0x1c
mov ecx, ebx
call fcn.100094ad
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, ebx
mov esi, eax
call fcn.100017ab
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 + 0x238]
xor ecx, ebp
call fcn.100771ba
add ebp, 0x23c
leave
ret

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

Disassembly:
test eax, eax
je 0x10059230
cmp word [eax], 0
je 0x10059230
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10059230
and al, 0x10
cmp al, 0x10
setne al
ret
xor al, al
ret
Function at 0x1005ace3
Capabilities:
Print debug messages

Disassembly:
push 0x58
mov eax, 0x100cdb59
call fcn.1007f6a6
xor esi, esi
cmp dword [ebx + 0x70], esi
je 0x1005acfd
xor eax, eax
jmp 0x1005ae49
mov eax, ebx
call fcn.10059a80
cmp byte [ebp + 8], 0
jne 0x1005ad23
lea eax, [ebx + 0x84]
mov ecx, dword [eax]
cmp ecx, 1
ja 0x1005ad23
inc ecx
mov dword [eax], ecx
mov ecx, ebx
call fcn.10059886
jmp 0x1005ad30
mov edi, ebx
call fcn.1005b411
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x18], eax
push dword [ebx + 0x88]
mov eax, ebx
call fcn.1005a9aa
push dword [ebx + 0x8c]
mov eax, ebx
call fcn.1005aa67
cmp dword [ebx + 0x98], esi
je 0x1005ad60
lea eax, [ebx + 0x9c]
push eax
mov eax, ebx
call fcn.1005abf1
cmp dword [ebx + 0x90], esi
je 0x1005ad75
push dword [ebx + 0x94]
mov eax, ebx
call fcn.1005ab25
push 0x100e57b4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x2c]
lea ecx, [ebx + 0x11e8]
push eax
call fcn.1005baa1
lea edi, [ebx + 0x11f4]
mov dword [ebp - 4], esi
call fcn.10058d5d
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
lea ecx, [ebp - 0x18]
call fcn.100223dd
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
call fcn.100223dd
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
je 0x1005add2
cmp dword [ebp - 0x18], eax
je 0x1005add7
call fcn.10077a21
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
je 0x1005ae2f
lea esi, [ebp - 0x18]
call fcn.10058511
push dword [eax]
push 0
call fcn.10058511
add eax, 4
push eax
push ebx
call fcn.10059b42
test eax, eax
jne 0x1005ae25
push 0x38
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.100771d0
or dword [ebp - 0x64], 0xffffffff
add esp, 0xc
call fcn.10058511
push dword [eax]
mov ecx, dword [ebx + 0x7c]
push 0x59
lea edx, [ebp - 0x64]
call fcn.10057274
lea esi, [ebp - 0x18]
call fcn.1005cb4c
jmp 0x1005adb3
push str.ReloadDownloadtask_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
call fcn.1005c764
xor eax, eax
inc eax
call fcn.1007f745
ret 4
Function at 0x1005d7cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2f0
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp + 0x64], eax
push esi
push edi
lea esi, [ebp + 0x70]
lea edi, [ebp - 0x27c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x64
xor edi, edi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.100771d0
movzx eax, byte [ebp - 0x270]
movzx ecx, byte [ebp - 0x26f]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x26e]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x26d]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x271]
push eax
movzx eax, byte [ebp - 0x272]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x273]
push eax
movzx eax, byte [ebp - 0x274]
shl eax, 8
or eax, ecx
push eax
movzx eax, word [ebp - 0x276]
push eax
movzx eax, word [ebp - 0x278]
push eax
push dword [ebp - 0x27c]
lea eax, [ebp - 0x64]
push str._X__X__X__X__X_X
push eax
call fcn.10077313
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x26c]
push str.CLSID_sLocalServer32
push eax
call fcn.10077313
add esp, 0x38
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x26c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1005d8af
xor eax, eax
jmp 0x1005d8f3
lea eax, [ebp - 0x288]
push eax
push ebx
lea eax, [ebp - 0x284]
push eax
push edi
push edi
push dword [ebp - 0x280]
xor esi, esi
inc esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x288], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1005d8e5
xor esi, esi
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp + 0x64]
pop edi
xor ecx, ebp
pop esi
call fcn.100771ba
add ebp, 0x68
leave
ret