joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440cc6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
call fcn.00422d07
cmp eax, 5
jle 0x440d63
push 0x1d
pop ecx
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
push 4
pop eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x80]
movsw word es:[edi], word [esi]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x440d63
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
push ebx
push str.EnableLUA
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x90], 1
push dword [ebp - 0x84]
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b5b0
leave
ret

Function at 0x4416a7
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x53e01c]
xor eax, esp
mov dword [esp + 0x60], eax
and dword [esp + 0x18], 0
and dword [esp + 0x14], 0
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [esp + 0xc], 0x67452301
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00440e32
pop ecx
lea edx, [esp + 8]
mov ecx, esi
call fcn.00440ef8
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret
Function at 0x441711
Capabilities:
Get file size
Hash data with md5
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov ebx, edx
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x4418f1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4418e8
cmp edi, 0x400000
jae 0x4417cb
push edi
call fcn.0045be1f
pop ecx
push esi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x74], eax
push ecx
push edi
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4417bc
cmp dword [ebp - 0x78], edi
jne 0x4417bc
lea eax, [ebp - 0x14]
mov edx, edi
mov edi, dword [ebp - 0x74]
mov ecx, edi
push eax
call fcn.004416a7
pop ecx
movzx eax, byte [ebp + esi - 0x14]
push eax
push 0x530690
push 3
push ebx
call fcn.004092d0
add esp, 0x10
add ebx, 4
inc esi
cmp esi, 0x10
jl 0x44179b
jmp 0x4417bf
mov edi, dword [ebp - 0x74]
push edi
call fcn.0045bb52
pop ecx
jmp 0x4418e8
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [ebp - 0x84], ecx
cmp ecx, 0xffffffff
je 0x4418f1
mov eax, edi
mov dword [ebp - 0x5c], esi
shr eax, 0x10
mov edx, esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
mov dword [ebp - 0x78], esi
test eax, eax
je 0x441879
push 0x10000
push edx
push esi
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x88], eax
test eax, eax
je 0x4418dc
push 0x10000
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00440e32
pop ecx
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
add edx, 0x10000
mov ecx, dword [ebp - 0x84]
inc eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x78], eax
cmp eax, dword [ebp - 0x80]
jb 0x441821
test di, di
je 0x4418a9
push esi
push edx
push esi
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x80], eax
test eax, eax
je 0x4418dc
sub edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
push edi
mov edx, eax
call fcn.00440e32
pop ecx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00440ef8
movzx eax, byte [ebp + esi - 0x14]
push eax
push 0x530690
push 3
push ebx
call fcn.004092d0
add esp, 0x10
add ebx, 4
inc esi
cmp esi, 0x10
jl 0x4418bd
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b5b0
leave
ret
Function at 0x4451d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x10], 0
je 0x445262
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4451f9
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x445262
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004beec0
add esp, 0xc
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x445224
mov ecx, dword [esi]
lea edx, [ebp - 0x210]
call fcn.00441711
cmp dword [edi + 0x14], 8
jb 0x445237
mov edi, dword [edi]
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.004d0817
add esp, 8
test eax, eax
jne 0x445262
mov ecx, esi
call fcn.0042aad0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret
Function at 0x445590
Capabilities:
Check if file exists
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f00b0
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x274], edi
test edi, edi
jne 0x4455d4
xor eax, eax
jmp 0x4457ce
cmp dword [ebx + 0x14c], 0
jne 0x445641
push ecx
lea eax, [edi + 0x74]
mov edx, 0xa
push eax
lea ecx, [ebp - 0x26c]
call fcn.00425010
add esp, 8
lea ecx, [ebx + 0x13c]
push eax
call fcn.00417300
mov edx, dword [ebp - 0x258]
cmp edx, 8
jb 0x445641
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x445637
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4457ec
push edx
push ecx
call fcn.0045b5e1
add esp, 8
xor eax, eax
mov dword [ebp - 0x24c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
movups xmmword [ebp - 0x234], xmm0
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], eax
lea esi, [ebx + 0x13c]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x254], eax
mov eax, esi
jb 0x4456a1
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44570d
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4456b6
mov edx, dword [esi]
sub esp, 0x18
mov ecx, edx
mov edi, esp
lea eax, [ecx + 2]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov dword [ebp - 0x270], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4456e0
sub ecx, dword [ebp - 0x270]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00407890
lea ecx, [ebp - 0x254]
call fcn.0042ddb0
mov edi, dword [ebp - 0x274]
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004beec0
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x44572d
mov eax, dword [esi]
push 0
push 0
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
lea edx, [ebp - 0x21c]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x445750
sub edx, ecx
lea eax, [ebp - 0x21c]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00407890
cmp dword [edi + 0x58], 8
lea esi, [edi + 0x44]
mov eax, esi
jb 0x44577b
mov eax, dword [esi]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
cmp dword [esi + 0x14], 8
jb 0x44578a
mov esi, dword [esi]
push ebx
push 0
lea eax, [ebp - 0x21c]
push eax
push esi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 0x5308fc
push 1
call fcn.0042b930
push eax
call fcn.0042ca90
add esp, 0x10
lea ecx, [ebp - 0x254]
call fcn.0042d250
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret 4
call fcn.004c1e0f
int3
Function at 0x4462b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov eax, dword [esi]
add eax, 0x13c
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x3c], 0x3c
push edi
cmp dword [eax + 0x14], 8
jb 0x4462f6
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x446304
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x20], 0
nop dword [eax]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 8]
cmp dword [eax], 0
jne 0x44634f
call ebx
cmp eax, 5
jne 0x44634f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jl 0x446320
mov eax, dword [0x555144]
test al, 1
jne 0x4463bf
movaps xmm0, xmmword [0x531b10]
or eax, 1
mov dword [0x555144], eax
mov dword [0x555148], 0
mov dword [0x55514c], 0
movups xmmword [0x55515c], xmm0
mov byte [0x55516c], 0
mov dword [0x555170], 0
mov dword [0x555174], 0
mov dword [0x555178], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x4f1de0
mov dword [0x555174], eax
call fcn.0045b82b
add esp, 4
push 0x53091c
push 2
push 0x555148
call fcn.0042ca90
mov eax, dword [esi + 8]
add esp, 0xc
cmp dword [eax], 0
je 0x44642a
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
mov ecx, dword [eax + 0x168]
test ecx, ecx
je 0x446407
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push 0
push 0x65
push 0x41b
call dword [eax]
push 0x530934
push 2
call fcn.0042b930
push eax
call fcn.0042ca90
mov ecx, dword [esi]
add esp, 0xc
call fcn.00446580
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
mov ecx, dword [esi]
mov dword [ecx + 0x170], eax
mov eax, dword [esi]
mov dword [eax + 0x16c], 0xc
mov edx, dword [esi]
mov ecx, dword [edx + 0x168]
test ecx, ecx
je 0x446467
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push dword [edx + 0x170]
push 0x67
push 0x41b
call dword [eax]
mov edx, dword [esi]
push dword [edx + 0x170]
push 0x530950
push 4
call fcn.0042b930
push eax
call fcn.0042ca90
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x446510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ecx + edi*4 + 0x158]
lea esi, [ecx + edi*4]
test eax, eax
je 0x446546
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x446546
mov dword [esi + 0x158], 0
mov ecx, dword [esi + 0x158]
test ecx, ecx
jne 0x44656a
push ecx
push ecx
push edi
push 0x446490
push ecx
push ecx
call fcn.004d0b03
mov ecx, eax
add esp, 0x18
mov dword [esi + 0x158], ecx
xor eax, eax
test ecx, ecx
pop edi
setne al
pop esi
pop ebp
ret 4
Function at 0x446fd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0335
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push 0x11
xor eax, eax
mov dword [ebp - 0x2c], 0
push str.SogouExplorer.exe
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00407890
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov edx, 2
lea ecx, [ebp - 0x44]
call fcn.00425010
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x447083
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x447079
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447162
push edx
push ecx
call fcn.0045b5e1
add esp, 8
mov edx, dword [ebp - 0x30]
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x4470aa
test ecx, ecx
je 0x44712a
cmp edx, 8
lea eax, [ebp - 0x44]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44712a
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.00403e90
mov ecx, esi
call fcn.0042d630
mov edx, dword [ebp - 0x30]
add esp, 0x18
cmp edx, 8
jb 0x44710c
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x447102
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44715d
push edx
push ecx
call fcn.0045b5e1
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.00427d10
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x44710c
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x447102
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x447102
call fcn.004c1e0f
call fcn.004c1e0f
int3
Function at 0x44d460
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0c4d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x545cac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x54139c], 0x10
mov eax, 0x541388
mov dword [0x541398], 0
cmovae eax, dword [0x541388]
push 0x545cac
mov byte [eax], 0
mov eax, 0x5413a0
cmp dword [0x5413b4], 0x10
mov dword [0x5413b0], 0
cmovae eax, dword [0x5413a0]
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 9
xor eax, eax
mov dword [ebp - 0x40], 0
push str.WupTk9Net
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00407890
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x20
push str.SoftwareSogouSogouExplorerwup
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.00407890
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20006
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x4c]
push eax
push 0x80000001
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call fcn.004063d0
test eax, eax
je 0x44d575
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x44d596
push eax
jmp 0x44d590
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x44d596
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x44d5cc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44d5c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44d632
push edx
push ecx
call fcn.0045b5e1
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x44d616
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44d60c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44d632
push edx
push ecx
call fcn.0045b5e1
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret
call fcn.004c1e0f
int3
Function at 0x4507b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x42c], edx
test edi, edi
je 0x450911
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4507e0
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea ebx, [esi + 0x20]
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045be1f
mov esi, eax
add esp, 4
test esi, esi
je 0x450911
push dword [ebp - 0x42c]
push edi
push str._s_LastError___d
push ebx
push esi
call fcn.004092d0
add esp, 0x14
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.TencentLogspipeerror.log
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004d10fd
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x52c0a8
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.004d12f0
add esp, 0xc
cmp dword [ebp - 0x42c], 0
je 0x450908
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push esi
push eax
movzx eax, word [ebp - 0x41a]
push eax
movzx eax, word [ebp - 0x41c]
push eax
movzx eax, word [ebp - 0x41e]
push eax
movzx eax, word [ebp - 0x420]
push eax
movzx eax, word [ebp - 0x422]
push eax
movzx eax, word [ebp - 0x426]
push eax
movzx eax, word [ebp - 0x428]
push eax
push str._04d__02d__02d__02d:_02d:_02d__d_:__s__s__n
push dword [ebp - 0x42c]
call fcn.004513b0
add esp, 0x2c
push dword [ebp - 0x42c]
call fcn.004d1473
add esp, 4
push esi
call fcn.0045bb52
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret

Function at 0x450da0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x218], 0
je 0x450db6
xor eax, eax
pop esi
pop ebp
ret 8
push dword [ebp + 8]
lea eax, [esi + 4]
push 0x52efcc
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp dword [esi + 0x218], 0
mov dword [esi + 0x220], eax
je 0x450dee
mov ecx, 1
mov eax, ecx
pop esi
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x224], eax
lea eax, [esi + 0x214]
push eax
push 0
push esi
push 0x450930
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0x210], eax
test eax, eax
pop esi
setne cl
mov eax, ecx
pop ebp
ret 8
Function at 0x450e30
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x218], 0
je 0x450e5c
push 1
push 0
push 0
lea ecx, [esi + 4]
mov dword [esi + 0x218], 0
mov edx, 0x65
call fcn.00450ef0
add esp, 0xc
mov eax, dword [esi + 0x210]
test eax, eax
je 0x450e7b
cmp dword [esi + 0x214], 0
jbe 0x450e7b
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x20c]
cmp eax, 0xffffffff
je 0x450e97
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20c], 0xffffffff
mov ecx, dword [esi + 0x210]
mov eax, ecx
test ecx, ecx
je 0x450ec5
cmp dword [esi + 0x214], 0
jbe 0x450ec9
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x210]
mov dword [esi + 0x218], 0
test eax, eax
je 0x450eda
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x210], 0
mov dword [esi + 0x214], 0
pop esi
ret
Function at 0x455bdd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
mov ebx, dword [edi + 0x2c]
mov ecx, dword [edi + 0x74]
mov dword [ebp - 0x10], ebx
mov esi, dword [edi + 0x3c]
mov edx, dword [edi + 0x6c]
sub esi, edx
sub esi, ecx
mov dword [ebp - 4], esi
jne 0x455c0f
test edx, edx
jne 0x455c1b
test ecx, ecx
jne 0x455c1b
mov esi, ebx
jmp 0x455c18
push 0xfffffffffffffffe
cmp esi, 0xffffffff
pop eax
cmove esi, eax
mov dword [ebp - 4], esi
mov eax, dword [edi + 0x2c]
add eax, 0xfffffefa
add eax, ebx
cmp edx, eax
jb 0x455ca3
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.004bf020
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
mov esi, ecx
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov dword [ebp - 0xc], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
movzx ecx, bx
movzx eax, word [edi]
mov edx, eax
mov dword [ebp - 0xc], ecx
sub eax, ecx
xor ecx, ecx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x455c51
mov edi, dword [ebp - 8]
mov esi, ebx
mov eax, dword [edi + 0x40]
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx eax, word [edi]
mov edx, eax
sub eax, dword [ebp - 0xc]
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x455c7e
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
add esi, ebx
mov ebx, dword [edi]
mov eax, dword [ebx + 4]
test eax, eax
je 0x455d5e
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x74]
add edx, ecx
add edx, dword [edi + 0x6c]
cmp eax, esi
mov dword [ebp - 4], edx
cmovbe esi, eax
test esi, esi
je 0x455d17
sub eax, esi
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x455ce4
mov edx, dword [ebx]
mov ecx, dword [ebx + 0x30]
push esi
call fcn.00459453
jmp 0x455cfc
cmp eax, 2
jne 0x455d03
mov edx, dword [ebx]
test edx, edx
jne 0x455cf3
xor eax, eax
jmp 0x455cfd
mov ecx, dword [ebx + 0x30]
push esi
call fcn.00456584
pop ecx
mov edx, dword [ebp - 4]
mov dword [ebx + 0x30], eax
push esi
push dword [ebx]
push edx
call fcn.004bf020
add dword [ebx], esi
add esp, 0xc
add dword [ebx + 8], esi
mov ecx, dword [edi + 0x74]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov dword [edi + 0x74], ecx
cmp ecx, 3
jb 0x455d46
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
mov ecx, dword [ebp - 0xc]
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp ecx, 0x106
jae 0x455d5e
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x455d5e
mov ebx, dword [ebp - 0x10]
jmp 0x455bf4
pop edi
pop esi
pop ebx
leave
ret