joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006c25e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1006c269
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x1006c325
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100e9370]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100e9370]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100e9370]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100e9370]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100e9370]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100e9370]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100e9370]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100e9370]
sub edi, 1
jne 0x1006c27e
pop edi
test esi, esi
je 0x1006c341
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100e9370]
inc edx
sub esi, 1
jne 0x1006c329
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x1006c348
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x100e9370]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100e9370]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x1006ca8b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov edi, ebx
mov edx, ecx
imul edi, dword [ebp + 8]
cmp byte [esi], 0
je 0x1006cac1
push 0
lea eax, [ebp + 8]
push eax
push edi
push edx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1006cabc
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x1006caf7
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jl 0x1006cadd
jg 0x1006cad7
cmp ecx, dword [esi + 0x20]
jbe 0x1006cadd
mov edi, dword [esi + 0x20]
sub edi, dword [esi + 0x28]
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 0x28]
push edi
push ecx
push edx
call fcn.1008d990
add esp, 0xc
mov eax, edi
add dword [esi + 0x28], edi
adc dword [esi + 0x2c], 0
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
Function at 0x1006d6f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x1006d785
cmp dword [esi + 4], 0xffffffff
jne 0x1006d785
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.100a03f4
pop ecx
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x1006d754
cmp eax, 0x2f
je 0x1006d754
push edi
call fcn.100a03f4
pop ecx
mov ecx, 0x103
sub ecx, eax
push ecx
push 0x100d1cf8
push edi
call fcn.100a04cc
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.1006c939
pop ecx
pop ecx
test eax, eax
jne 0x1006d76c
mov eax, dword [ebp - 4]
jmp 0x1006d78a
mov ecx, eax
call fcn.1006cd2e
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x1006d78a
mov eax, 0x1000000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1006dd47
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x1006dd79
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1006dd79
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x1006de44
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x1006dd96
cmp ax, 0x5c
jne 0x1006dd98
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x1006dd8a
cmp esi, ebx
je 0x1006dde0
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.1008d990
add esp, 0xc
cmp esi, 0x208
jae 0x1006de54
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, edi
mov word [ebp + esi - 0x414], ax
call fcn.1006dd47
xor eax, eax
mov esi, 0x103
mov word [ebp - 0x20c], ax
test edi, edi
je 0x1006de03
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10095a99
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.100a03f4
sub esi, eax
lea eax, [ebp - 0x20c]
push esi
push ebx
push eax
call fcn.100a04cc
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
jne 0x1006de44
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret
call fcn.1008aed6
int3
Function at 0x1006ecc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x14], 0
je 0x1006ecee
call edi
mov ecx, dword [esi + 0x14]
sub eax, ecx
cmp eax, 0x2932e00
ja 0x1006ecee
call fcn.100749b0
test eax, eax
je 0x1006ecee
pop edi
xor eax, eax
pop esi
ret 4
call edi
lea ecx, [esi + 4]
mov dword [esi + 0x14], eax
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
ret 4

Function at 0x1006f6d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x1006f705
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1006f6f5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
push dword [esi + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x1006f740
push 0
push 0
call fcn.100963ac
xor ecx, ecx
mov dword [esi + 4], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10070dd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x84]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x80
push eax
push 0x100d1e02
push str.config1
push str.Profile
call edi
xor ecx, ecx
mov al, byte [ebp + ecx - 0x84]
inc ecx
cmp al, 0x30
jl 0x10070e22
cmp al, 0x39
jle 0x10070e34
cmp al, 0x61
jl 0x10070e2a
cmp al, 0x66
jle 0x10070e34
sub al, 0x41
cmp al, 5
ja 0x10070f31
cmp ecx, 0x20
jl 0x10070e12
xor eax, eax
cmp byte [ebp + ecx - 0x84], al
sete al
test eax, eax
je 0x10070f31
cmp byte [ebp - 0x84], 0
jne 0x10070e5a
xor ecx, ecx
jmp 0x10070e6c
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10070e63
sub ecx, edx
push ecx
lea eax, [ebp - 0x84]
mov ecx, ebx
push eax
call fcn.100057f3
push esi
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0x100d1e02
push str.config2
push str.Profile
call edi
cmp byte [ebp - 0x84], 0
jne 0x10070ea6
xor ecx, ecx
jmp 0x10070eb9
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10070eb0
sub ecx, edx
push ecx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebx + 0x48]
call fcn.100057f3
push esi
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0x100d1e02
push str.config3
push str.Profile
call edi
cmp byte [ebp - 0x84], 0
jne 0x10070ef4
xor ecx, ecx
jmp 0x10070f09
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10070f00
sub ecx, edx
push ecx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebx + 0x18]
call fcn.100057f3
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret 8

Function at 0x100743e0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.1008df10
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.TencentDeskUpdate
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1009600a
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 0xc
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x1007446d
xor ecx, ecx
jmp 0x10074485
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10074476
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.10001dcf
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret
Function at 0x10074580
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.1008df10
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.TencentDeskUpdate
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1009600a
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 0xc
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x1007460d
xor ecx, ecx
jmp 0x10074625
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10074616
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.10001dcf
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret
Function at 0x100762f0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c2d46
mov eax, dword fs:[0]
push eax
mov eax, 0x1094
call fcn.1008bd90
mov eax, dword [0x1010b070]
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
mov ebx, dword [edi]
mov ecx, ebx
call fcn.10076260
mov dword [ebp - 0x109c], 0xffffffff
push 3
push 0
push ebx
lea ecx, [ebp - 0x109c]
mov dword [ebp - 4], 0
call fcn.1007f1c0
mov esi, dword [ebp - 0x109c]
test eax, eax
jne 0x10076365
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
jmp 0x10076518
push 0x1004
xorps xmm0, xmm0
mov dword [ebp - 0x101c], 0
lea eax, [ebp - 0x1018]
movq qword [ebp - 0x1024], xmm0
push 0
push eax
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x10a0], 0
call fcn.1008df10
add esp, 0xc
lea eax, [ebp - 0x10a0]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push 0xc
lea eax, [ebp - 0x1024]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100763e3
xor edi, edi
jmp 0x10076518
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x10076404
cmp eax, 0x1000
jae 0x10076404
lea ecx, [ebp - 0x1018]
add eax, ecx
mov ecx, edi
push eax
call fcn.10076140
mov eax, dword [ebp - 0x1004]
test eax, eax
je 0x10076425
cmp eax, 0x1000
jae 0x10076425
lea ecx, [ebp - 0x1018]
add eax, ecx
mov ecx, edi
push eax
call fcn.10076180
mov eax, dword [ebp - 0x1000]
test eax, eax
je 0x10076446
cmp eax, 0x1000
jae 0x10076446
lea ecx, [ebp - 0x1018]
add eax, ecx
mov ecx, edi
push eax
call fcn.100761c0
mov eax, dword [ebp - 0x100c]
test eax, eax
je 0x10076467
cmp eax, 0x1000
jae 0x10076467
lea ecx, [ebp - 0x1018]
add eax, ecx
mov ecx, edi
push eax
call fcn.10076200
cmp byte [ebp - 0x100e], 0
mov eax, dword [ebp - 0xffc]
mov dword [edi + 0x64], eax
je 0x1007647f
or dword [edi + 0x68], 1
jmp 0x10076483
and dword [edi + 0x68], 0xfffffffe
mov ecx, edi
call fcn.10075650
cmp esi, 0xffffffff
je 0x1007649f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov dword [ebp - 0x109c], esi
cmp dword [edi + 0x44], 0
jne 0x10076513
push ebx
lea ecx, [ebp - 0x1098]
call fcn.1006f750
mov byte [ebp - 4], 1
call fcn.1007f260
cmp dword [ebp - 0x1054], 0
je 0x10076508
lea ecx, [edi + 4]
lea eax, [ebp - 0x1094]
cmp ecx, eax
je 0x100764da
push 0xffffffffffffffff
push 0
push eax
call fcn.1000586c
lea ecx, [edi + 0x1c]
lea eax, [ebp - 0x107c]
cmp ecx, eax
je 0x100764f1
push 0xffffffffffffffff
push 0
push eax
call fcn.1000586c
lea ecx, [edi + 0x34]
lea eax, [ebp - 0x1064]
cmp ecx, eax
je 0x10076508
push 0xffffffffffffffff
push 0
push eax
call fcn.1000586c
lea ecx, [ebp - 0x1098]
call fcn.1006e500
mov edi, 1
cmp esi, 0xffffffff
je 0x10076524
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.1008a9f7
mov esp, ebp
pop ebp
ret
Function at 0x10077400
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c2ece
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x48], esi
mov dword [esi + 0x10], 0
jb 0x10077458
mov eax, dword [esi]
jmp 0x1007745a
mov eax, esi
mov byte [eax], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.10074880
mov edi, eax
mov byte [ebp - 4], 1
cmp esi, edi
je 0x100774e5
cmp dword [esi + 0x14], 0x10
jb 0x100774c0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
inc eax
cmp eax, 0x1000
jb 0x100774b7
test cl, 0x1f
je 0x10077493
call fcn.10090951
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1007749f
call fcn.10090951
sub ecx, eax
cmp ecx, 4
jae 0x100774ab
call fcn.10090951
cmp ecx, 0x23
jbe 0x100774b5
call fcn.10090951
mov ecx, eax
push ecx
call fcn.1008a9f2
add esp, 4
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x100774d8
mov eax, dword [esi]
jmp 0x100774da
mov eax, esi
push edi
mov ecx, esi
mov byte [eax], 0
call fcn.100078d1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x10077533
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x1007752a
test cl, 0x1f
je 0x10077506
call fcn.10090951
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10077512
call fcn.10090951
sub ecx, eax
cmp ecx, 4
jae 0x1007751e
call fcn.10090951
cmp ecx, 0x23
jbe 0x10077528
call fcn.10090951
mov ecx, eax
push ecx
call fcn.1008a9f2
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.100743e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10077565
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x100775bd
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x1007757d
call fcn.10090951
add eax, eax
cmp eax, 0x1000
jb 0x100775b4
test cl, 0x1f
je 0x10077590
call fcn.10090951
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1007759c
call fcn.10090951
sub ecx, eax
cmp ecx, 4
jae 0x100775a8
call fcn.10090951
cmp ecx, 0x23
jbe 0x100775b2
call fcn.10090951
mov ecx, eax
push ecx
call fcn.1008a9f2
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret
Function at 0x10078f40
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c304b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x1010b070]
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 dword [ebp - 0x4c0], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4b8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4b4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x4b0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebp + 0x28]
push 0x208
mov dword [ebp - 0x4a8], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008df10
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
js 0x10079022
push str.TencentDeskUpdate_
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x10079014
lea eax, [ebp - 0x218]
push eax
push 0
call ebx
push str.GlobalMgr.db
lea eax, [ebp - 0x218]
push eax
call esi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1008df10
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10079088
push str.TencentDeskUpdate_
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
jne 0x1007907a
lea eax, [ebp - 0x420]
push eax
push 0
call ebx
push str.GlobalMgr.db
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x100790a7
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
call fcn.10079f80
lea eax, [ebp - 0x4a0]
mov dword [ebp - 0x4a4], eax
lea ecx, [ebp - 0x4a4]
push 3
lea eax, [ebp - 0x218]
push eax
call fcn.10026c6d
push dword [ebp - 0x4a8]
mov ecx, dword [ebp - 0x4c0]
push dword [ebp - 0x4ac]
mov dword [ebp - 4], 0
push dword [ebp - 0x4b0]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x4b4]
push dword [ebp - 0x4b8]
push dword [ebp - 0x4bc]
push dword [ebp - 0x4a4]
call fcn.10078c30
mov bl, al
lea ecx, [ebp - 0x4a0]
mov eax, dword [ebp - 0x4a4]
cmp eax, ecx
je 0x10079127
push eax
call fcn.100959a0
add esp, 4
mov al, bl
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.1008a9f7
mov esp, ebp
pop ebp
ret 0x24
Function at 0x10079f80
Capabilities:
Check if file exists
Copy file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1007a188
xorps xmm0, xmm0
mov byte [ebp - 8], 0
push edi
push 3
lea eax, [ebp - 0x114]
mov byte [ebp - 0x2c], 0
push esi
lea ecx, [ebp - 0x118]
mov byte [ebp - 0x50], 0
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x74], 0
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x118], eax
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x70], xmm0
movups xmmword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x94], xmm0
movups xmmword [ebp - 0x84], xmm0
call fcn.10026c6d
push dword [ebp - 0x118]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x28]
push 0x21
push eax
push 0
push str.config1
push str.Profile
call edi
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
cmp eax, ecx
je 0x1007a036
push eax
call fcn.100959a0
add esp, 4
push 3
lea eax, [ebp - 0x114]
push esi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
call fcn.10026c6d
push dword [ebp - 0x118]
lea eax, [ebp - 0x4c]
push 0x21
push eax
push 0
push str.config2
push str.Profile
call edi
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
cmp eax, ecx
je 0x1007a083
push eax
call fcn.100959a0
add esp, 4
push 3
lea eax, [ebp - 0x114]
push esi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
call fcn.10026c6d
push dword [ebp - 0x118]
lea eax, [ebp - 0x70]
push 0x21
push eax
push 0
push str.config3
push str.Profile
call edi
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
cmp eax, ecx
je 0x1007a0d0
push eax
call fcn.100959a0
add esp, 4
push 3
lea eax, [ebp - 0x114]
push esi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
call fcn.10026c6d
push dword [ebp - 0x118]
lea eax, [ebp - 0x94]
push 0x21
push eax
push 0
push str.config4
push str.Profile
call edi
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
pop edi
cmp eax, ecx
je 0x1007a121
push eax
call fcn.100959a0
add esp, 4
lea ecx, [ebp - 0x28]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007a127
sub ecx, edx
cmp ecx, 0x20
jne 0x1007a188
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007a140
sub ecx, edx
cmp ecx, 0x20
jne 0x1007a188
lea ecx, [ebp - 0x70]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007a154
sub ecx, edx
cmp ecx, 0x20
jne 0x1007a188
lea ecx, [ebp - 0x94]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007a170
sub ecx, edx
cmp ecx, 0x20
jne 0x1007a188
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret 4
Function at 0x1007b5d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c33c2
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x1010b070]
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 ebx, edx
mov esi, ecx
mov dword [ebp - 0x81c], esi
mov dword [ebp - 0x820], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x828], esi
mov dword [esi + 0x10], 0
jb 0x1007b63e
mov eax, dword [esi]
jmp 0x1007b640
mov eax, esi
mov byte [eax], 0
lea eax, [ebp - 0x818]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x820], 1
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x824], 0x800
mov dword [ebp - 0x81c], 1
call edi
test eax, eax
jne 0x1007b73a
push ebx
push 0x100f886c
push 0xffffffffffffffff
lea eax, [ebp - 0x810]
push 0x800
push eax
call fcn.1006a2b7
add esp, 0x14
lea eax, [ebp - 0x814]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x818]
call edi
test eax, eax
jne 0x1007b73a
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x81c]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007b73a
cmp byte [ebp - 0x810], al
jne 0x1007b719
xor ecx, ecx
jmp 0x1007b72b
lea ecx, [ebp - 0x810]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007b722
sub ecx, edx
push ecx
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.100057f3
mov eax, dword [ebp - 0x814]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1007b757
push eax
call edi
mov dword [ebp - 0x814], 0
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x1007b764
push eax
call edi
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 - 0x10]
xor ecx, ebp
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret