joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a881
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x42a907
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x42a8cc
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call fcn.0042a881
cmp eax, esi
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jne 0x42a90d
lea eax, [esp + 0x18]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x28]
mov dword [esp + 0x30], 0x200
call edi
test eax, eax
je 0x42a8b4
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
jmp 0x42a907

Function at 0x42a91d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push esi
push 0x206
mov esi, eax
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.00486d70
add esp, 0xc
mov ecx, 0x50e594
call fcn.0040f75c
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x42a9a2
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.004152cd
push str.kdesk_
push esi
call fcn.00401000
push dword [esi]
call fcn.0042952c
mov dword [esp], str.kdesksetup.log
push esi
call fcn.00401000
jmp 0x42a9a7
call fcn.00414b73
mov eax, esi
pop esi
leave
ret

Function at 0x42a9ac
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.0040eb78
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x42aa59
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x42aa58
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
call fcn.0040ebb7
mov esi, eax
mov dword [ebp - 8], esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42aa58
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x42aa58
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
jne 0x42aa09
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x42aa43
xor eax, eax
jmp 0x42aa4a
push eax
call fcn.00487430
pop ecx
mov edx, esi
call fcn.0040decf
mov dword [ebp - 0x10], 1
pop edi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret
Function at 0x42ae24
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x42ae46
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop esi
leave
ret
mov dword [ebp - 4], pe_nt_image_headers32
call fcn.0044033e
cmp eax, 8
jne 0x42ae68
call fcn.0044063d
cmp eax, 2
jne 0x42ae68
mov dword [ebp - 4], 0x10
push ebx
push edi
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push dword [ebp - 4]
push 0x32
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
cmp edi, esi
jne 0x42af05
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebx
cmp eax, 0x431
je 0x42aeb4
call ebx
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop ebx
jmp 0x42ae43
push 2
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
je 0x42aea1
push dword [ebp + 0x10]
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x42af05
call ebx
push dword [ebp - 4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042ad39
add esp, 0x18
jmp 0x42aea3
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x42af21
cmp word [eax], si
je 0x42af21
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42aea5
Function at 0x42af2d
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push str.CreateShellLink_start...
mov esi, 0x51049c
xor edi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.004452e2
pop ecx
lea eax, [ebp - 4]
push eax
push 0x4de80c
push 1
push ebx
push 0x4de81c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jl 0x42b025
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x14], ebx
je 0x42af9d
push dword [ebp + 0x14]
call fcn.0048650a
test eax, eax
pop ecx
jbe 0x42af9d
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push dword [ebp + 0x14]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x42afb3
cmp word [eax], bx
je 0x42afb3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x4de82c
push eax
call dword [ecx]
test eax, eax
jl 0x42b012
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
call fcn.00423978
lea eax, [ebp - 0xc]
call fcn.0042948d
mov edi, dword [ebp - 0xc]
push edi
call fcn.0042952c
pop ecx
lea eax, [edi - 0x10]
call fcn.00401023
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp dword [ebp - 0xc], ebx
setge al
mov edi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push str.CreateShellLink_return:_d__file:_ws__cmd:_ws__link:_ws
call fcn.004452e2
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42f8c6
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
lea ebp, [edi + 4]
lea esi, [ebp + 0x10]
call fcn.00435637
lea esi, [ebp + 0x28]
call fcn.00435637
or dword [ebp + 0x40], 0xffffffff
xor ebx, ebx
mov dword [ebp], 1
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 4], ebx
mov byte [ebp + 0x44], bl
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], 0x2710
cmp dword [0x50e2f8], ebx
je 0x42f91c
push 0x50e168
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x50e2f8], eax
fld dword [0x4f7ad0]
lea esi, [edi + 0x54]
mov dword [edi], vtable.ATL::CAtlHttpClientT_class_ATL::ZEvtSyncSocket_.0
fstp dword [esi + 0xc]
fld dword [0x4f7ad4]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0x10]
mov dword [esi], ebx
fld dword [0x4f7ad8]
mov dword [esi + 4], ebx
fstp dword [esi + 0x14]
mov dword [esi + 8], 0x11
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0040bbec
fld dword [0x4f7ad0]
lea esi, [edi + 0x84]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0xc]
fld dword [0x4f7ad4]
mov dword [esi], ebx
fstp dword [esi + 0x10]
mov dword [esi + 4], ebx
fld dword [0x4f7ad8]
mov dword [esi + 8], 0x11
fstp dword [esi + 0x14]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0040bbec
lea eax, [edi + 0xb4]
lea esi, [edi + 0xc8]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
call fcn.00430d09
lea esi, [edi + 0x10d8]
call fcn.00428420
lea esi, [edi + 0x3544]
mov ecx, 0x50e594
call fcn.0040f75c
lea esi, [edi + 0x3548]
mov ecx, 0x50e594
call fcn.0040f75c
mov esi, ebp
call fcn.00428f73
call fcn.004323b8
mov dword [edi + 0xc4], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4353d3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00414c55
mov edi, eax
cmp edi, esi
je 0x435410
cmp dword [ebp - 8], esi
je 0x43540c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x43547d
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x43542e
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.004353d3
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x435484
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x100
call edi
test eax, eax
je 0x435418
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x435464
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x43547b
push dword [ebp - 8]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x435492
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x43547d

Function at 0x4370d0
Capabilities:
Set registry value

Disassembly:
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
mov eax, dword [esp + 0xc]
push 1
push 0
push str.idex
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x4371f8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
xor ebx, ebx
push esi
inc ebx
test eax, eax
push edi
jne 0x43721b
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call fcn.00437100
mov eax, dword [eax]
pop ecx
push eax
lea eax, [ebp - 0xc]
call fcn.00423978
test byte [ebp - 4], bl
je 0x437234
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [0x50e594]
mov ecx, 0x50e594
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 8]
call fcn.00405142
push dword [eax]
mov esi, dword [ebp - 0xc]
push esi
push str._sressrc_suplive.svr
lea eax, [ebp - 4]
call fcn.0042318c
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00401023
mov edi, dword [ebp - 4]
push edi
push 0xbbb
push str.TryNo
push str.Common
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov ebx, eax
lea eax, [edi - 0x10]
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4373b3
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
push 0x40
xor esi, esi
lea eax, [ebp - 0x9c]
push esi
push eax
call fcn.00486d70
add esp, 0xc
push 0x58
lea eax, [ebp - 0x5c]
push esi
push eax
mov byte [ebp - 0x9c], 0x80
call fcn.00486d70
mov eax, dword [ebp + 0x10]
add esp, 0xc
push dword [ebp + 0xc]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], esi
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x67452301
mov dword [ebp - 0x58], 0xefcdab89
mov dword [ebp - 0x54], 0x98badcfe
mov dword [ebp - 0x50], 0x10325476
call fcn.004372a4
push dword [ebp + 8]
lea eax, [ebp - 0x9c]
push eax
mov eax, esi
call fcn.0043733b
pop esi
leave
ret

Function at 0x4379a2
Capabilities:
Create thread

Disassembly:
push esi
call fcn.00404d33
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 8]
mov dword [0x510264], eax
mov eax, dword [esp + 0xc]
mov dword [0x51025c], eax
mov eax, dword [0x510270]
xor esi, esi
cmp dword [eax - 0xc], esi
jne 0x4379df
mov eax, 0xe000001f
call fcn.0042ac4d
xor eax, eax
jmp 0x437a0c
push esi
push esi
push 0x510258
push 0x438116
push esi
push esi
mov dword [0x510268], esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, esi
mov dword [0x51026c], eax
jne 0x437a09
mov eax, 0xe0000020
jmp 0x4379d6
xor eax, eax
inc eax
pop esi
ret 8
Function at 0x437d92
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
mov edi, 0x4ee0dc
xor esi, esi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
mov dword [ebp - 0x14], esi
call fcn.00423978
push edi
lea eax, [ebp - 0xc]
call fcn.00423978
push edi
lea eax, [ebp - 4]
call fcn.00423978
push 0x40
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00486d70
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push str.kdeskmenu64install64.exe
add eax, 0x18
lea ecx, [ebp + 8]
mov dword [ebp - 0x68], 0x44
call fcn.00415360
add esp, 0x10
lea edi, [ebp - 0x10]
call fcn.00424a4a
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401023
mov edi, dword [ebp - 0x10]
push esi
push edi
call fcn.004876c4
test eax, eax
pop ecx
pop ecx
je 0x437e25
mov dword [ebp - 8], esi
jmp 0x437eca
push ebx
mov ebx, str._install:kdeskmenu64.dll__forcedMode:true
push ebx
call fcn.0048650a
pop ecx
push ebx
mov ebx, eax
lea eax, [ebp - 0xc]
call fcn.004152f3
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push edi
push str._s__s
call fcn.0042318c
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea esi, [ebp - 4]
call fcn.00424e75
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x437eac
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x437e9a
cmp dword [ebp - 0x14], 0xffffffff
jne 0x437e9a
mov dword [ebp - 8], ebx
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x437eaf
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
jne 0x437eb8
xor eax, eax
jmp 0x437ec1
push dword [ebp - 4]
call fcn.0048650a
pop ecx
lea edx, [ebp - 4]
call fcn.004010ac
pop ebx
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [edi - 0x10]
call fcn.00401023
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
Function at 0x437ef1
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x50e594]
and dword [ebp - 4], 0
push ebx
push esi
mov ecx, 0x50e594
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x510270]
add eax, 0xfffffff0
call fcn.004249f2
mov esi, eax
push str.kdesk.exe
add esi, 0x10
push esi
push str.__s_s___autorun
lea eax, [ebp - 8]
call fcn.0042318c
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.00401023
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
lea esi, [ebp - 4]
call fcn.00440797
mov ebx, dword [ebp - 8]
mov esi, eax
test esi, esi
je 0x437f84
mov eax, dword [0x51039c]
push edi
add eax, 0xfffffff0
call fcn.004249f2
mov edi, eax
push ebx
add edi, 0x10
push edi
lea esi, [ebp - 4]
call fcn.00473533
mov esi, eax
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
lea eax, [ebx - 0x10]
call fcn.00401023
cmp dword [ebp - 4], 0
je 0x437f9b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x437fa1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call fcn.00486d70
mov eax, dword [0x50e594]
add esp, 0xc
mov ecx, 0x50e594
call dword [eax + 0xc]
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
add edi, 0x10
push 0x104
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
mov esi, 0x510274
je 0x438057
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004152cd
push str.kdesk_
push esi
call fcn.00401000
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
push 0x4f28d8
lea eax, [ebp - 4]
call fcn.0042318c
mov edi, dword [ebp - 4]
pop ecx
pop ecx
push dword [edi - 0xc]
mov eax, esi
push edi
call fcn.0040103b
push dword [0x510274]
call fcn.0042952c
test eax, eax
pop ecx
je 0x438057
inc ebx
jmp 0x43805c
call fcn.00414b73
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x43845c
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
push ebp
push esi
push edi
lea edi, [esp + 0x10]
call fcn.004383dc
mov eax, dword [0x50e594]
mov ecx, 0x50e594
call dword [eax + 0xc]
mov edi, eax
xor ebp, ebp
push ebp
add edi, 0x10
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00429ad4
cmp eax, ebp
jne 0x4384bc
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push ebp
mov ebp, str.GetDebugPrivilege_return:_d_GetLassError_return:_d
push ebp
call fcn.0042ac5c
add esp, 0xc
call esi
push eax
push 0
push ebp
mov esi, 0x51049c
call fcn.004452e2
add esp, 0xc
xor ebp, ebp
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov dword [esp + 0xc], eax
mov eax, ebx
mov dword [ebx + 0x10], ebp
call fcn.00437b98
test eax, eax
jne 0x4384fd
mov eax, dword [ebx + 0x80]
cmp eax, ebp
je 0x4384f1
push dword [ebx + 0x58]
push 0x4f29c0
push 3
push 0x32
call eax
add esp, 0x10
mov eax, 0xe0000007
call fcn.0042ac4d
jmp 0x43851a
push 0xa
lea eax, [ebx + 0xc8]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov eax, ebx
call fcn.004393f4
mov dword [ebx + 0x10], 1
cmp dword [ebx + 0x10], ebp
jne 0x438529
mov eax, 0xefffffff
call fcn.0042ac4d
call esi
sub eax, dword [esp + 0xc]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x80]
cmp eax, ebp
je 0x438551
cmp dword [ebx + 0x10], ebp
je 0x438551
push dword [ebx + 0x58]
push 0x4f29d0
push ebp
push 0x64
call eax
add esp, 0x10
push dword [ebx + 0x7c]
mov esi, 0x51049c
push dword [ebx + 0x10]
push str.install_end__return:_d__install_cost_time:_dms
call fcn.004452e2
push dword [ebx + 0x10]
push str.install_thread_end:_d
call fcn.0042ac5c
add esp, 0x14
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [edi - 0x10]
call fcn.00401023
lea edi, [esp + 0x10]
call fcn.00438422
pop edi
pop esi
pop ebp
add esp, 0x40
ret
Function at 0x4392bf
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov edi, 0x50e594
mov ecx, edi
mov esi, ebx
call fcn.0040f75c
and word [ebp - 0x210], 0
push 0x206
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.00486d70
mov eax, dword [0x50e594]
add esp, 0xc
mov ecx, edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
push str.programfiles
mov dword [ebp - 4], esi
call fcn.00488f6b
pop ecx
push eax
push ebx
call fcn.004152cd
mov eax, dword [ebx]
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x439347
push edi
push 0x26
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, edi
je 0x4393e6
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.004152cd
mov eax, ebx
call fcn.0042587d
mov esi, ebx
call fcn.00429449
mov eax, dword [0x510398]
add eax, 0xfffffff0
call fcn.004249f2
lea edi, [eax + 0x10]
push dword [edi - 0xc]
mov eax, ebx
push edi
call fcn.0040103b
lea eax, [edi - 0x10]
call fcn.00401023
lea eax, [ebp - 8]
push eax
call fcn.00473389
pop ecx
lea edi, [ebp - 4]
call fcn.00424a4a
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x4393e6
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4393e6
xor ecx, ecx
inc ecx
lea edx, [ebp - 8]
mov eax, edi
call fcn.00415108
call fcn.00424a4a
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
jge 0x4393d9
push 0x80070057
call fcn.004011cc
movzx eax, word [esi]
push eax
xor edi, edi
mov eax, ebx
call fcn.00430cab
lea eax, [esi - 0x10]
call fcn.00401023
pop edi
mov eax, ebx
pop esi
leave
ret
Function at 0x439efa
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x50e594]
push ebx
push esi
xor esi, esi
push edi
mov ecx, 0x50e594
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [eax + 0xc]
push dword [ebp + 0xc]
mov ebx, eax
mov edi, 0x51049c
mov dword [ebp - 4], esi
push str.GetPacketData__d
mov esi, edi
add ebx, 0x10
call fcn.004452e2
mov esi, dword [ebp + 8]
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.00439fe6
push eax
push str.GetPacketData_return:_d
mov esi, edi
mov dword [ebp + 0xc], eax
call fcn.004452e2
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
jne 0x439f69
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 1
jmp 0x439fc7
call fcn.0046c395
test eax, eax
mov dword [ebp - 4], eax
je 0x439fc7
push str.Extract...
call fcn.004452e2
mov eax, dword [ebp - 4]
pop ecx
push dword [ebp + 0x10]
mov ecx, dword [eax]
push dword [ebp - 8]
push dword [ebp + 0xc]
push eax
call dword [ecx]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp + 0xc], eax
push ecx
push str.Extract_return:_d
call fcn.004452e2
xor esi, esi
cmp dword [ebp + 0xc], esi
pop ecx
pop ecx
je 0x439fc0
lea eax, [ebx - 0x10]
call fcn.00401023
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov dword [ebp - 0xc], 1
cmp dword [ebx - 0xc], 0
je 0x439fd4
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x439fe1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 0xc]
jmp 0x439faf