joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413a43
Capabilities:
Check if file exists
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d0e4
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x4524c8]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov eax, dword [0x4524c8]
xor eax, esp
push eax
lea eax, [esp + 0x488]
mov dword fs:[0], eax
call fcn.004014a4
push eax
lea ecx, [esp + 0x1c]
call fcn.004012ba
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x490], esi
call fcn.00415d63
lea ecx, [esp + 0x20]
mov byte [esp + 0x490], 1
call fcn.00415051
mov byte [esp + 0x490], 2
push dword [esp + 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
xor eax, eax
push 0x206
mov word [esp + 0x278], ax
lea eax, [esp + 0x27a]
push esi
push eax
call fcn.0041e3e0
add esp, 0xc
push dword [esp + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413bfa
call fcn.004014a4
push eax
lea ecx, [esp + 0x20]
call fcn.004012ba
mov byte [esp + 0x490], 3
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push str._sQQCall.exe
push eax
call fcn.0040a005
add esp, 0xc
lea eax, [esp + 0x24]
push 0x250
push esi
push eax
call fcn.0041e3e0
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x30]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x278]
push 0x104
push eax
call fcn.0041ecbe
add esp, 0xc
lea eax, [esp + 0x274]
push 0x44b844
push eax
call fcn.00422b19
pop ecx
pop ecx
test eax, eax
je 0x413bd7
lea eax, [esp + 0x274]
push 0x44b848
push eax
call fcn.00422b19
pop ecx
pop ecx
test eax, eax
je 0x413bd7
test edi, edi
je 0x413baf
lea eax, [esp + 0x274]
push edi
push eax
call fcn.00422b19
pop ecx
pop ecx
test eax, eax
je 0x413bd7
lea eax, [esp + 0x274]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push str._s_s
push eax
call fcn.0040a005
add esp, 0x10
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x413b4d
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esi - 0x10]
call fcn.0040153a
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040153a
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040153a
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040153a
xor eax, eax
inc eax
mov ecx, dword [esp + 0x488]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0041e2e9
mov esp, ebp
pop ebp
ret

Function at 0x41405e
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x218], edi
je 0x414071
xor eax, eax
inc eax
jmp 0x4140a2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x224], eax
lea eax, [esi + 0x214]
push eax
push edi
push esi
push 0x4142a3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0x210], eax
test eax, eax
setne cl
mov eax, ecx
pop edi
pop esi
ret
Function at 0x414142
Capabilities:
Get common file path

Disassembly:
push 0x220
mov eax, 0x43d1a6
call fcn.00423c42
mov ebx, ecx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.004014a4
push eax
lea ecx, [ebp - 0x22c]
call fcn.004012ba
xor edi, edi
lea ecx, [ebp - 0x22c]
push 0x104
mov dword [ebp - 4], edi
call fcn.0040a05d
push 0x104
lea ecx, [ebp - 0x22c]
mov esi, eax
call fcn.0040a095
push esi
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00410d60
push str.TencentLogslasterror.log
lea ecx, [ebp - 0x22c]
call fcn.00410a72
mov esi, dword [ebp - 0x22c]
push 0x44b960
push esi
call fcn.00423550
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x414248
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push ebx
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push eax
push str._04d__02d__02d__02d:_02d:_02d__d_:__s__s__n
push edi
call fcn.0042347c
push edi
call fcn.0042369b
add esp, 0x30
lea ecx, [esi - 0x10]
call fcn.0040153a
call fcn.00423bf1
ret

Function at 0x41468a
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x218], ebx
je 0x4140cb
push 1
push ebx
push ebx
push 0x65
lea ecx, [esi + 4]
mov dword [esi + 0x218], ebx
pop edx
call fcn.0041468f
add esp, 0xc
mov eax, dword [esi + 0x210]
test eax, eax
je 0x4140e9
cmp dword [esi + 0x214], ebx
jbe 0x4140e9
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x20c]
cmp eax, 0xffffffff
je 0x414102
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x20c], 0xffffffff
mov eax, dword [esi + 0x210]
test eax, eax
je 0x414122
cmp dword [esi + 0x214], ebx
jbe 0x414122
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x218], ebx
mov eax, dword [esi + 0x210]
test eax, eax
je 0x414139
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x210], ebx
mov dword [esi + 0x214], ebx
pop esi
pop ebx
ret
jmp 0x4140a5
Function at 0x415299
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4524c8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
jne 0x4152b4
xor eax, eax
jmp 0x41531d
push esi
sub esp, 0x14
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push str.SoftwareTencentTodayDo
push ecx
lea ecx, [ebp - 0x20]
call fcn.00411534
test eax, eax
jne 0x415312
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x14]
imul ecx, eax, 0x64
movzx eax, word [ebp - 0x12]
push 4
add ecx, eax
movzx eax, word [ebp - 0xe]
imul ecx, ecx, 0x64
add ecx, eax
lea eax, [ebp - 0x24]
push eax
push 4
push esi
push edi
push dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
lea ecx, [ebp - 0x20]
call fcn.00404145
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0041e2e9
mov esp, ebp
pop ebp
ret
Function at 0x41549d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d458
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4524c8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, edx
xor ebx, ebx
mov edx, ecx
mov edi, ebx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], edi
call fcn.00416399
mov edx, esi
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x14]
call fcn.00416399
mov edx, str.SpesmarlIlnclzs
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x1c]
call fcn.0041733f
push ebx
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [eax]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.0040153a
inc bl
je 0x4155fb
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
mov edx, 0x44b7ac
mov eax, dword [eax - 0xc]
lea edi, [eax*2 + 2]
call fcn.0041733f
push edi
mov byte [esp + 0x34], 2
lea ecx, [esp + 0x1c]
mov esi, dword [eax]
push 0
call fcn.0040a05d
push eax
push 1
push 0
push esi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov byte [esp + 0x30], 1
mov ecx, dword [esp + 0x1c]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.0040153a
inc bl
je 0x4155e8
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
mov edx, str.NgQ9
mov eax, dword [eax - 0xc]
lea edi, [eax*2 + 2]
call fcn.0041733f
push edi
mov byte [esp + 0x34], 3
lea ecx, [esp + 0x18]
mov esi, dword [eax]
push 0
call fcn.0040a05d
push eax
push 1
push 0
push esi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x1c]
mov edi, eax
neg edi
sbb edi, edi
lea ecx, [ecx - 0x10]
inc edi
call fcn.0040153a
jmp 0x4155ec
mov edi, dword [esp + 0x20]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esp + 0x10], 0
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040153a
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040153a
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415830
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x1c
mov eax, 0x43d4e7
call fcn.00423c0f
and dword [ebp - 0x10], 0
call fcn.004014a4
push eax
lea ecx, [ebp - 0x1c]
call fcn.004012ba
and dword [ebp - 4], 0
call fcn.004014a4
push eax
lea ecx, [ebp - 0x20]
call fcn.004012ba
mov byte [ebp - 4], 1
call fcn.004014a4
push eax
lea ecx, [ebp - 0x24]
call fcn.004012ba
mov byte [ebp - 4], 2
call fcn.004014a4
push eax
lea ecx, [ebp - 0x28]
call fcn.004012ba
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.0041567c
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
pop ecx
pop ecx
xor ecx, ecx
cmp dword [esi - 0xc], ecx
je 0x415948
push ecx
xor eax, eax
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x415930
xor ecx, ecx
cmp dword [edi - 0xc], ecx
je 0x4158eb
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp dword [ebx - 0xc], ecx
je 0x4158fc
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x18]
push eax
push ecx
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x415923
xor eax, eax
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
jne 0x415948
cmp dword [ebp - 0x18], 0
jne 0x415948
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, str.SpesmarlIlnclzsQQ
lea ecx, [ebp - 0x18]
call fcn.0041733f
xor edx, edx
lea ecx, [ebp - 0x10]
push edx
push ecx
push edx
push 0xf003f
push edx
push edx
push edx
push dword [eax]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [ebp - 0x18]
neg eax
sbb al, al
add ecx, 0xfffffff0
inc al
mov dword [ebp - 0x14], eax
call fcn.0040153a
cmp byte [ebp - 0x14], 0
je 0x4159bc
mov edx, str.CIJpk
lea ecx, [ebp - 0x18]
call fcn.0041733f
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040153a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.0040153a
lea ecx, [ebx - 0x10]
call fcn.0040153a
lea ecx, [edi - 0x10]
call fcn.0040153a
lea ecx, [esi - 0x10]
call fcn.0040153a
call fcn.00423bdd
ret
Function at 0x4159e5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d518
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.00432510
mov eax, dword [0x4524c8]
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 edi, ecx
xor ebx, ebx
mov dword [ebp - 0x102c], ebx
mov dword [ebp - 0x1024], ebx
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 0x101c], ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0xffe
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push ebx
push eax
call fcn.0041e3e0
mov eax, dword [0x455318]
add esp, 0xc
mov dword [ebp - 0x1018], 0x800
cmp dword [eax - 0xc], ebx
je 0x415ae5
mov edx, str.IzepIip
lea ecx, [ebp - 0x1014]
call fcn.0041733f
mov esi, eax
mov edx, str.mhjz
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1028]
call fcn.0041733f
push dword [0x455318]
lea ecx, [ebp - 0x1010]
push 0x104
push ecx
push ebx
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x1028]
lea ecx, [ecx - 0x10]
call fcn.0040153a
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
call fcn.0040153a
cmp word [ebp - 0x1010], bx
je 0x415ae5
lea edx, [ebp - 0x1010]
mov ecx, edi
call fcn.00416fff
jmp 0x415b78
mov edx, 0x44b3b0
lea ecx, [ebp - 0x1014]
call fcn.00416fff
push 0x2001f
lea ecx, [ebp - 0x1024]
push dword [eax]
push 0x80000001
call fcn.004040e7
mov ecx, dword [ebp - 0x1014]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.0040153a
inc bl
je 0x415b6a
mov edx, str.9097954401ACCMYkyr1nW3iDYQuC8OB1q453uqyT3t6An1PjVCKjE4GNnqDk9n_ONbIEIldOeND04D8dVzNTgm5mMLztd3rhAHgH7gC32PVDbpuq1wzAJkppeRobUnz1iJSkzmBOrG9DpHQgXGYMaCw4OBQHGPz89kqL2vnnX7qmRSSzp8k4fc00PKt_0g3v9qa6dQVBK4
lea ecx, [ebp - 0x1014]
call fcn.00416fff
lea ecx, [ebp - 0x1018]
push ecx
lea ecx, [ebp - 0x1010]
push ecx
push dword [eax]
lea ecx, [ebp - 0x1024]
call fcn.00404011
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
call fcn.0040153a
cmp dword [ebp - 0x1018], 0
ja 0x415ad3
lea eax, [ebp - 0x1010]
mov ecx, edi
push eax
call fcn.00410971
lea ecx, [ebp - 0x1024]
call fcn.00404145
mov eax, edi
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.0041e2e9
mov esp, ebp
pop ebp
ret
Function at 0x415cdf
Capabilities:
Delete registry value

Disassembly:
push 0x14
mov eax, 0x43d57b
call fcn.00423c0f
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov edx, str.C882A43B01ACacoBzYhVqa40QWeRSBNAXkbypLwjArot0hwW_nM9O9e2gELoNMp8b9K_mONR1MKdHTJqOkYhg1veY4qpu0cUhF6mLA0bvPWQ9Nl92kOynYHTRr00cUXU1KW172JKlfA5ZrjGPtcF4EG7boEKhh4EQKVUF_ee17De0DpMJLcifPG85wNuqBxsgQUKwpXYbXVabuxLjS96VL44mztAaVsYIesyByTNDM5pYdcaeVwxRog
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x10]
call fcn.00416fff
sub esp, 0x14
push dword [eax]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00411534
mov ecx, dword [ebp - 0x10]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.0040153a
inc bl
je 0x415d53
mov edx, str.05F1FFF701ACfUlSSQthwTV5abDVECtxBw4DS8ogFtIYPeVeqJYK7oLagdwNJfcPI1tgzJfhN7tFl6ReqrvX_y5q2QvP0wJy6PZmVlYBuGfihDV6Rmur1czPafs4FsvmgagumWL7JkT_DE7FtyK5t3nlwOh_Z7phBoaR_VW5mthn1vqoeIWFa7c8awy66KHPS04g
lea ecx, [ebp - 0x10]
call fcn.00416fff
push dword [eax]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [ecx - 0x10]
inc esi
call fcn.0040153a
lea ecx, [ebp - 0x1c]
call fcn.00404145
mov eax, esi
call fcn.00423bdd
ret

Function at 0x415d63
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4524c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
mov esi, ecx
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x220], ebx
push ebx
push eax
call fcn.0041e3e0
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push ebx
push eax
mov dword [ebp - 0x218], 0x104
mov dword [ebp - 0x214], 1
call fcn.0041e3e0
add esp, 0x18
lea ecx, [ebp - 0x21c]
mov edx, str.SWXINARKIlnclzsQQ4667
call fcn.0041733f
lea ecx, [ebp - 0x210]
push ecx
push 0x20019
push ebx
push dword [eax]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x21c]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.0040153a
inc bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x415e44
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x44a9c4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call ebx
cmp word [ebp - 0x20c], 0
jne 0x415eaa
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQLite
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415ea0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x44a9c4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call ebx
cmp word [ebp - 0x20c], 0
je 0x415ec3
push str._bin
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041ed1a
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00410971
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e2e9
mov esp, ebp
pop ebp
ret
Function at 0x415f66
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 8
mov eax, 0x43d5ea
call fcn.00423c0f
mov dword [ebp - 0x14], ecx
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416017
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x416017
call fcn.004014a4
push eax
lea ecx, [ebp - 0x10]
call fcn.004012ba
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x12
pop ecx
xor edx, edx
div ecx
lea ecx, [ebp + 8]
push edx
push edi
call fcn.0040a05d
push eax
lea eax, [ebp - 0x10]
push str._s_x.tmp
push eax
call fcn.0040a005
mov esi, dword [ebp - 0x10]
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push esi
push dword [ebp + 8]
call ebx
test eax, eax
je 0x415ffd
push 4
push edi
push esi
jmp 0x416009
cmp dword [ebp - 0x14], 0
je 0x41600d
push 4
push edi
push dword [ebp + 8]
call ebx
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.0040153a
jmp 0x41601a
xor edi, edi
inc edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040153a
mov eax, edi
call fcn.00423bdd
ret
Function at 0x416081
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
xor edx, edx
push edi
push 3
mov edi, ecx
lea eax, [ebx + 2]
pop ecx
div ecx
cmp eax, 0x40000000
jb 0x4160a3
or eax, 0xffffffff
jmp 0x41618d
mov edx, dword [ebp + 0xc]
shl eax, 2
cmp dword [edx], eax
jb 0x41609b
push esi
mov esi, dword [ebp + 8]
cmp ebx, 2
jbe 0x41611f
xor edx, edx
lea eax, [ebx - 3]
div ecx
lea edx, [eax + 1]
movzx ecx, byte [edi]
shr ecx, 2
push 3
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [edi + 2]
and eax, 0x3f
pop ecx
add edi, ecx
sub ebx, ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
dec edx
jne 0x4160c0
mov edx, dword [ebp + 0xc]
test ebx, ebx
je 0x416180
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
cmp ebx, 1
jbe 0x416166
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
jmp 0x41617d
movzx eax, byte [edi]
and eax, ecx
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
add esi, 4
mov eax, esi
sub eax, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
mov byte [esi], 0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x417efd
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x1048
mov edi, ecx
push 0x447138
push edi
call fcn.0041e470
mov ebx, dword [ebp + 8]
add esp, 0xc
mov edx, ebx
xor esi, esi
lea eax, [ebx + 8]
movzx ecx, byte [edx]
inc edx
cmp edx, eax
cmovae edx, ebx
shl ecx, 8
movzx eax, byte [edx]
or ecx, eax
inc edx
lea eax, [ebx + 8]
cmp edx, eax
cmovae edx, ebx
shl ecx, 8
movzx eax, byte [edx]
or ecx, eax
inc edx
lea eax, [ebx + 8]
cmp edx, eax
cmovae edx, ebx
shl ecx, 8
movzx eax, byte [edx]
or ecx, eax
inc edx
lea eax, [ebx + 8]
cmp edx, eax
cmovae edx, ebx
xor dword [edi + esi*4], ecx
inc esi
cmp esi, 0x12
jl 0x417f24
xor esi, esi
mov dword [ebp - 8], esi
mov ebx, esi
mov dword [ebp - 4], esi
mov edx, edi
lea ecx, [ebp - 8]
call fcn.004179ff
mov eax, dword [ebp - 8]
mov dword [edi + ebx*4], eax
mov eax, dword [ebp - 4]
mov dword [edi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 0x12
jl 0x417f73
mov edx, edi
lea ecx, [ebp - 8]
call fcn.004179ff
mov eax, dword [ebp - 8]
mov dword [edi + esi*4 + 0x48], eax
mov eax, dword [ebp - 4]
mov dword [edi + esi*4 + 0x4c], eax
add esi, 2
cmp esi, 0x400
jl 0x417f92
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419275
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4524c8]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push esi
push edi
push 0x38
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 4]
pop ecx
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0xc]
cmp eax, ecx
mov dword [ebp - 0x5c], ebx
cmova eax, ecx
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x40]
push edx
push eax
call fcn.0041e470
push 0x48
lea edi, [ebx + 0x10]
push 0x448258
push edi
mov dword [ebp - 0x58], edi
call fcn.0041e470
push 0x1000
lea eax, [ebx + 0x58]
push 0x4487c8
push eax
mov dword [ebp - 0x50], eax
call fcn.0041e470
add esp, 0x24
mov dword [ebp - 0x54], edi
and dword [ebp - 0x48], 0
lea ebx, [ebp - 0x40]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x44], 0x12
mov edx, dword [ebp + 0xc]
xor ecx, ecx
push 4
pop esi
movzx eax, byte [ebx]
dec esi
shl ecx, 8
or ecx, eax
inc ebx
inc edi
cmp edi, edx
jne 0x41931d
xor edi, edi
lea ebx, [ebp - 0x40]
test esi, esi
jne 0x419309
mov edx, dword [ebp - 0x54]
xor dword [edx], ecx
add edx, 4
dec dword [ebp - 0x44]
mov dword [ebp - 0x54], edx
jne 0x419301
and dword [ebp - 0x4c], esi
and dword [ebp - 0x48], esi
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x5c]
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call fcn.004193b4
mov eax, dword [ebp - 0x4c]
add esi, 2
mov dword [edi], eax
mov eax, dword [ebp - 0x48]
push 4
pop ecx
add edi, ecx
mov dword [edi], eax
add edi, ecx
cmp esi, 0x12
jb 0x41933d
mov dword [ebp - 0x44], ecx
lea eax, [ebx + 0x58]
xor edi, edi
mov esi, eax
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call fcn.004193b4
mov eax, dword [ebp - 0x4c]
add edi, 2
mov dword [esi], eax
lea esi, [esi + 8]
mov eax, dword [ebp - 0x48]
mov dword [esi - 4], eax
cmp edi, 0x100
jl 0x41936b
mov eax, dword [ebp - 0x50]
add eax, 0x400
dec dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
jne 0x419367
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e2e9
mov esp, ebp
pop ebp
ret 0xc