joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b320
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x604db0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [edi]
xor ebx, ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [edi + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x48b376
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push eax
push ecx
push edi
call fcn.0048b8b0
mov eax, dword [edi + 4]
push eax
call esi
test eax, eax
jne 0x48b38d
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
push edi
call fcn.0048b8b0
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0xc]
push edi
call fcn.0048c110
push edi
call fcn.0048c9f0
call fcn.0041a430
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
lea eax, [edi + 8]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
push ecx
mov ebx, str.SkinlistOrder.dat
call fcn.0040aab0
add esp, 8
lea edx, [esp + 0x18]
mov byte [esp + 0x30], 1
mov eax, dword [eax]
push edx
push eax
call fcn.0048d940
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b3fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x628b70
call fcn.00409dd0
lea edx, [esp + 0x10]
lea ebx, [edi + 0x24]
push edx
mov ecx, ebx
mov byte [esp + 0x34], 2
call fcn.0048b500
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x48b43d
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
je 0x48b43d
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
call fcn.0048b710
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48b462
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x628b7c
call fcn.00409dd0
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
mov byte [esp + 0x34], 3
call fcn.0048b500
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x48b49f
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
je 0x48b49f
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
call fcn.0048b710
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48b4c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x18]
call fcn.0044a010
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005d2367
mov eax, 1
add esp, 4
mov dword [edi + 0x10], eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48b690
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x820
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x81c], eax
cmp dword [ebp + 8], 0
jne 0x48b6ed
lea eax, [esp + 4]
push eax
mov eax, dword [esi + 4]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x800
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jl 0x48b6ed
push eax
lea edx, [esi - 0x24]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
call fcn.00489460
mov ecx, dword [esp + 0x81c]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret 4
Function at 0x490100
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 8]
test eax, eax
je 0x490160
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x490160
cmp dword [esp + 4], 0
jne 0x49013e
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 8]
push 0x3e9
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x20], 0
ret 4
cmp dword [esi + 0x20], 0
jne 0x490160
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push 0
push edx
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x20], 1
ret 4

Function at 0x490300
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x490378
cmp dword [esp + 8], 0x3e9
jne 0x490378
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x490378
push 4
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3e9
push esi
call dword [sym.imp.USER32.dll_KillTimer]
push 0x213
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x490362
mov dword [eax + 0x20], 0
call fcn.00490000
test eax, eax
je 0x490378
push 0
push 0
push 0xf
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop esi
ret 4
Function at 0x490650
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x606078
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [0x678fd8]
lea eax, [esp + 0xc]
push eax
call fcn.00409dd0
lea edi, [ebx + 0x18]
mov dword [esp + 0x28], 0
call fcn.0040ab90
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4906bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
mov dword [ebx + 0xc], 0x1f4
cmp dword [ecx - 0xc], 0
jne 0x49071a
mov eax, dword [ebx + 8]
test eax, eax
je 0x49077b
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49077b
mov edx, dword [ebx + 8]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 8]
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [ebx + 0x20], 0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x20
ret
cmp dword [ebx + 0x10], 0
je 0x49077b
cmp dword [ebx + 0x14], 0
je 0x49077b
call fcn.00490380
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x49077b
call fcn.0048fa00
test eax, eax
jne 0x49077b
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
mov eax, dword [esp + 0x14]
push 1
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [ebx + 8]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x20
ret
Function at 0x492680
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
push esi
push 0x5c
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call fcn.005da970
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x70], esi
call fcn.00492240
mov eax, dword [esp + 0x78]
push eax
lea esi, [esp + 0x1c]
call fcn.00492520
add esp, 0x18
pop esi
add esp, 0x5c
ret

Function at 0x4926f0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, eax
mov eax, dword [esi]
push edi
push eax
call ebp
mov ecx, dword [esi + 4]
push ecx
mov edi, eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
xor ebx, ebx
sub eax, edx
mov dword [esp + 0x10], eax
jmp 0x492724
mov eax, dword [esp + 0x10]
lea eax, [eax + ebx*4]
mov ecx, dword [esp + eax + 0x14]
push ecx
call ebp
mov dword [esp + ebx*4 + 0x14], eax
add ebx, 1
cmp ebx, 4
jl 0x492720
mov ecx, dword [esp + 0x20]
mov eax, 0xe3779b90
mov dword [esp + 0x10], 0x10
jmp 0x492750
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x1c]
mov edx, edi
shr edx, 5
add edx, ecx
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x18]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x14]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
sub edi, edx
add eax, 0x61c88647
sub dword [esp + 0x10], 1
jne 0x492750
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov ebx, dword [esp + 0x2c]
push esi
mov dword [ebx], eax
call edi
pop edi
pop esi
pop ebp
mov dword [ebx + 4], eax
pop ebx
add esp, 0x14
ret
Function at 0x494850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov ebp, 3
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x4949df
push esi
lea ecx, [esp + 0x24]
push str._sConnection
push ecx
mov eax, 0x103
call fcn.00498610
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
call edi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4949d8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.MediaSubType
push edx
call esi
test eax, eax
jne 0x4949d1
push 0x104
push eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x103
call fcn.005da970
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.PnpInstanceID
push ecx
call esi
test eax, eax
jne 0x4949d1
mov esi, 1
cmp dword [esp + 0xc], esi
jne 0x4949c1
push ebp
lea edx, [esp + 0x24]
push 0x630c90
push edx
call fcn.005d58dc
add esp, 0xc
test eax, eax
jne 0x49499c
xor ebp, ebp
jmp 0x4949d1
cmp dword [esp + 0xc], esi
jne 0x4949c1
push 3
lea eax, [esp + 0x24]
push 0x630c90
push eax
call fcn.005d58dc
add esp, 0xc
test eax, eax
je 0x4949c1
mov ebp, 2
jmp 0x4949d1
xor ecx, ecx
cmp dword [esp + 0xc], 2
setne cl
lea ecx, [ecx + ecx + 1]
mov ebp, ecx
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.005d28b3
add esp, 0x11c
ret
Function at 0x494f10
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x601688
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
lea edi, [esp + 0x40]
mov dword [esp + 0x20], eax
mov byte [esp + 0x1b], 0
call fcn.00495280
add esp, 4
mov dword [esp + 0x68], 0
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x494f78
lea eax, [esp + 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x495061
push 1
lea edi, [esp + 0x24]
call fcn.00495280
lea ecx, [esp + 0x40]
add esp, 4
push ecx
call fcn.00495a40
add esp, 4
test al, al
jne 0x49500f
mov edx, edi
push edx
call fcn.00495a40
add esp, 4
test al, al
je 0x49500f
mov ecx, dword [esp + 0x40]
mov edi, 8
cmp dword [esp + 0x54], edi
jae 0x494fdc
lea ecx, [esp + 0x40]
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x494fea
lea eax, [esp + 0x24]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x495014
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x495006
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x495014
mov edi, 8
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x495022
lea eax, [esp + 0x24]
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call ebx
cmp dword [esp + 0x38], edi
mov esi, eax
jb 0x495049
mov eax, dword [esp + 0x24]
push eax
call fcn.005d2367
add esp, 4
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
mov word [esp + 0x24], ax
je 0x49509e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x495091
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x495091
cmp dword [esp + 0x18], edi
mov bl, 1
je 0x495095
mov bl, byte [esp + 0x17]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4950a2
mov bl, byte [esp + 0x17]
cmp dword [esp + 0x54], 8
jb 0x4950b6
mov eax, dword [esp + 0x40]
push eax
call fcn.005d2367
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret 4
Function at 0x4950e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x601658
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
xor ebx, ebx
push ebx
lea edi, [esp + 0x40]
mov dword [esp + 0x20], eax
call fcn.00495280
add esp, 4
mov dword [esp + 0x64], ebx
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x49513c
lea eax, [esp + 0x40]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x4951b3
push 1
lea edi, [esp + 0x24]
call fcn.00495280
mov eax, dword [esp + 0x28]
mov edi, 8
add esp, 4
cmp dword [esp + 0x38], edi
jae 0x495179
lea eax, [esp + 0x24]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call ebp
cmp dword [esp + 0x38], edi
mov esi, eax
jb 0x49519d
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005d2367
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
je 0x4951db
mov eax, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x1c]
push edx
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4951d4
cmp dword [esp + 0x18], 0x10
jne 0x4951d4
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x54], 8
jb 0x4951ef
mov ecx, dword [esp + 0x40]
push ecx
call fcn.005d2367
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005d28b3
add esp, 0x54
ret 4
Function at 0x495280
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x60161d
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov esi, 7
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov dword [esp + 0x14], edi
mov word [edi + 4], bx
push 0x208
lea eax, [esp + 0x38]
push ebx
mov dword [esp + 0x254], ebx
push eax
mov dword [esp + 0x1c], 1
call fcn.005da970
mov cl, byte [esp + 0x260]
add esp, 0xc
neg cl
push 1
lea edx, [esp + 0x38]
sbb ecx, ecx
and ecx, 0xfffffff7
add ecx, 0x23
push ecx
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4953c2
lea eax, [esp + 0x34]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x495330
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
push eax
lea esi, [esp + 0x20]
call fcn.00405040
mov ecx, esi
push ebx
push ecx
or eax, 0xffffffff
mov esi, edi
mov dword [esp + 0x254], 1
call fcn.00404f80
mov byte [esp + 0x24c], bl
cmp dword [esp + 0x30], 8
jb 0x495382
mov edx, dword [esp + 0x1c]
push edx
call fcn.005d2367
add esp, 4
cmp byte [esp + 0x254], bl
mov ecx, edi
je 0x495396
push 0x13
push str.TencentDeskUpdate
jmp 0x49539d
push 0x10
push str.TencentDesktop
call fcn.0040a070
mov ecx, edi
call fcn.004953f0
test al, al
jne 0x4953b4
mov ecx, edi
call fcn.00495560
push 0xa
push 0x630ce8
mov ecx, edi
call fcn.0040a070
mov eax, edi
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.005d28b3
add esp, 0x244
ret

Function at 0x495ac0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.metnsdclsid
push SysReAllocStringLen
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x495b42
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push ebx
push esi
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.SequenceID
push eax
mov esi, eax
mov dword [esp + 0x24], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x495b2a
mov eax, dword [esp + 0x14]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
test eax, eax
sete bl
test esi, esi
je 0x495b38
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
add esp, 8
ret 4
xor al, al
add esp, 8
ret 4
Function at 0x495b50
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x601530
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea ebx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
call fcn.0047a980
lea edi, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.0040ab90
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495bd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
jne 0x495c02
lea eax, [edx - 0x10]
mov dword [esp + 0x2c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x495bfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x495d22
jle 0x495c2c
lea ecx, [eax - 1]
test ecx, ecx
jl 0x495cc8
cmp ecx, eax
jg 0x495cc8
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x495c2c
push 0x5c
lea edi, [esp + 0x18]
call fcn.0040af90
push 9
push str.Global.db
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040aee0
mov ebp, dword [esp + 0x14]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push ebp
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, esi
jne 0x495cd2
call fcn.0040f010
test eax, eax
jl 0x495ca3
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x495c8c
call fcn.0040f010
test eax, eax
jl 0x495c98
mov eax, dword [esp + 0x14]
cmp eax, 0x10
jne 0x495c98
cmp dword [esp + 0x18], 0
je 0x495cda
test edi, edi
je 0x495ca3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], esi
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x495bfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x495d22
push 0x80070057
call fcn.00403650
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x495c6b
mov ecx, dword [esp + 0x34]
mov esi, 0x10
lea edx, [esp + 0x1c]
call fcn.00417460
test eax, eax
setge bl
test edi, edi
je 0x495cfc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495d20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x49ae60
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x60143c
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x244]
mov esi, ecx
mov dword [esp + 0x20], esi
call fcn.004036c0
mov esi, ebp
call fcn.004036c0
lea edi, [esp + 0x14]
call fcn.0047ac70
mov dword [esp + 0x23c], 0
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x49aef7
lea ecx, [eax - 1]
test ecx, ecx
jl 0x49b0ae
cmp ecx, eax
jg 0x49b0ae
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x49aef7
push 0x5c
call fcn.0040af90
push 9
push str.FramePic_
lea eax, [esp + 0x1c]
push eax
call fcn.0040aee0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, str.FrameConfig.ini
call fcn.0040aab0
push 0x20c
lea eax, [esp + 0x30]
push 0
push eax
mov byte [esp + 0x250], 1
call fcn.005da970
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x14
push ecx
push 0x104
lea edx, [esp + 0x2c]
push edx
push 0x6244e0
push str.photo
push str.cand
call esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [esp + 0x2c]
call fcn.0040aab0
add esp, 8
mov edi, ebp
mov byte [esp + 0x23c], 2
call fcn.0040ab90
mov byte [esp + 0x23c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49afab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20c
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.005da970
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
push 0x104
lea eax, [esp + 0x2c]
push eax
push 0x6244e0
push str.photo
push str.status
call esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ebx, [esp + 0x2c]
call fcn.0040aab0
add esp, 8
mov edi, dword [esp + 0x20]
mov byte [esp + 0x23c], 3
call fcn.0040ab90
mov byte [esp + 0x23c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49b02e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x23c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49b056
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x23c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49b081
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.005d28b3
add esp, 0x22c
ret
push 0x80070057
call fcn.00403650
int3