joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407383
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x18
mov eax, dword [0x513b1c]
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x40739d
mov esi, dword [eax + 4]
jmp 0x40739f
xor esi, esi
cmp esi, edi
jne 0x4073af
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, edi
je 0x4073d4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x4073d4
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4073d4
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push esi
mov eax, ebx
mov dword [ebx + 0x330], edi
call fcn.00407f52
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x4073fa
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x407503
mov edx, eax
call fcn.0040d96c
mov dword [esp + 0x20], eax
lea ebp, [ebx + 4]
push ebp
mov eax, esi
call fcn.0040d81f
cmp dword [ebx + 0x320], edi
je 0x4074ad
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x40746e
push 1
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x40748e
push edi
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x4074ad
push edi
push edi
push 0xf
push dword [ebp]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, ebx
call fcn.0044c87a
push 0x97
push edi
push ebp
mov dword [ebx + 0x330], edi
call fcn.0040d802
cmp dword [esp + 0x1c], edi
je 0x4074eb
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, edi
je 0x4074eb
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x4074eb
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040d96c
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x334]
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x4077fc
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x18
mov eax, dword [0x513b1c]
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x407816
mov esi, dword [eax + 4]
jmp 0x407818
xor esi, esi
cmp esi, edi
jne 0x407828
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, edi
je 0x40784d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x40784d
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40784d
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push esi
mov eax, ebx
mov dword [ebx + 0x330], edi
call fcn.00408206
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x407873
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40797c
mov edx, eax
call fcn.0040d96c
mov dword [esp + 0x20], eax
lea ebp, [ebx + 4]
push ebp
mov eax, esi
call fcn.0040d81f
cmp dword [ebx + 0x320], edi
je 0x407926
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x4078e7
push 1
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x407907
push edi
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x407926
push edi
push edi
push 0xf
push dword [ebp]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, ebx
call fcn.0044c87a
push 0x97
push edi
push ebp
mov dword [ebx + 0x330], edi
call fcn.0040d802
cmp dword [esp + 0x1c], edi
je 0x407964
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, edi
je 0x407964
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x407964
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040d96c
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x334]
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x407a21
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], ebx
jne 0x407a53
mov eax, dword [0x513b1c]
cmp eax, ebx
je 0x407a41
mov esi, dword [eax + 4]
jmp 0x407a43
xor esi, esi
cmp esi, ebx
jne 0x407a53
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebx
je 0x407a78
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x407a78
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x407a78
push ebx
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push esi
mov eax, edi
mov dword [edi + 0x330], ebx
call fcn.00408321
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x407a9e
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x407ba7
mov edx, eax
call fcn.0040d96c
mov dword [esp + 0x20], eax
lea ebp, [edi + 4]
push ebp
mov eax, esi
call fcn.0040d81f
cmp dword [edi + 0x320], ebx
je 0x407b51
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebx
push ebx
push ebx
push 0x2001
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x407b12
push 1
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x407b32
push ebx
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x407b51
push ebx
push ebx
push 0xf
push dword [ebp]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, edi
call fcn.0044c87a
push 0x97
push ebx
push ebp
mov dword [edi + 0x330], ebx
call fcn.0040d802
cmp dword [esp + 0x1c], ebx
je 0x407b8f
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebx
je 0x407b8f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x407b8f
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040d96c
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x334]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4094d7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x18
lea edi, [esi + 0x3f4]
push 0
push edi
call fcn.00489500
fld dword [0x4fabb0]
add esp, 0xc
fstp dword [edi]
fldz
lea ebx, [esi + 0x3fc]
push ebx
fstp dword [esi + 0x3f8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov esi, ebx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], eax
movsd dword es:[edi], dword [esi]
fild dword [ebp - 8]
fld qword [0x4faba8]
movsd dword es:[edi], dword [esi]
fmul st(1), st(0)
fxch st(1)
call fcn.004c83d0
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fmulp st(1)
call fcn.004c83d0
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov edi, dword [ebp + 8]
lea eax, [edi + 0x418]
push eax
lea eax, [ebp - 0x18]
call fcn.0040d349
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
lea esi, [edi + 0x3cc]
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push eax
call fcn.0042303d
mov eax, edi
call fcn.0040982e
test eax, eax
je 0x4095b2
add eax, 4
push eax
push dword [edi + 0x3d8]
neg esi
push dword [edi + 0x3d4]
lea eax, [edi + 0x3d0]
sbb esi, esi
and esi, eax
push esi
call fcn.0040c257
add esp, 0x10
push edi
call fcn.00409602
push 0
push 0x14
push 0x5f5e103
push dword [edi + 4]
mov dword [edi + 0x3c8], 3
call dword [sym.imp.USER32.dll_SetTimer]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
lea esi, [edi + 0x418]
push dword [esi]
call ebx
push 0
push 0
push 0xf
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [edi + 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c802
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
push edi
mov dword [ebp - 8], ebx
je 0x40c8de
mov eax, dword [0x512bd4]
mov ecx, 0x512bd4
call dword [eax + 0xc]
push dword [ebp + 0x10]
add eax, 0x10
push dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [esi]
lea eax, [ebp - 4]
push str._s_d._s
call fcn.00421c33
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x40c8d3
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40c8ca
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp + 8], ebx
call fcn.0040d47a
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40c8c1
cmp dword [ebp + 8], edi
jne 0x40c8c1
mov eax, edi
call fcn.0040c732
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
xor eax, eax
inc eax
jmp 0x40c8e1
xor eax, eax
mov edx, esi
call fcn.0040c74b
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40c92f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40c94e
xor eax, eax
jmp 0x40c99e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x40c94a
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40c94a
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.0040d47a
test eax, eax
je 0x40c98a
push edi
push dword [ebp - 4]
push eax
call fcn.00489850
add esp, 0xc
mov eax, ebx
call fcn.0040c732
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40cab5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [esi + 0x14], 2
je 0x40cb0d
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub eax, ecx
je 0x40cafe
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
sub edx, eax
je 0x40cafe
mov edx, dword [esi + 0x10]
push 0x11
push 0
push 0
sub ecx, edx
push ecx
sub eax, edx
push eax
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x40cb0d
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
leave
ret 4
Function at 0x40cb11
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push edi
mov edi, eax
jne 0x40cb31
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
jmp 0x40cb8e
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
je 0x40cb93
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x40cb93
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40cb8e
or byte [edi + 0x14], 4
mov al, byte [edi + 0x14]
test al, 2
jne 0x40cb85
push dword [ebp + 8]
or al, 2
mov byte [edi + 0x14], al
call fcn.0040b939
push 8
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40cb8e
cmp dword [edi + 0x18], esi
je 0x40cb8e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], esi
jmp 0x40cba2
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
pop edi
leave
ret 8

Function at 0x40dfb9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x40dfd0
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x40e005
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40e001
cmp edi, eax
jae 0x40e005
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40dff3
cmp edi, eax
jb 0x40e009
xor eax, eax
jmp 0x40e013
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4134c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413527
cmp dword [ebp + 0xc], 1
je 0x413500
cmp dword [ebp + 0xc], 2
je 0x413500
push 0xd
pop eax
jmp 0x413527
test edi, edi
mov eax, dword [ebp - 4]
je 0x413521
test eax, eax
je 0x41351d
test al, 1
jne 0x4134fb
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x413521
jmp 0x4134fb
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x419e0f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
inc esi
cmp eax, 0xf
push edi
mov edi, ecx
jne 0x419e3e
mov ecx, dword [ebp + 0x18]
lea eax, [edi + 0xac]
mov dword [eax], esi
and dword [ecx], 0
cmp dword [eax], 0
je 0x419e75
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x419e96
push dword [edi + 0x10]
mov dword [edi + 0xac], esi
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x419e6f
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x419e6f
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [edi + 0xac], 0
jne 0x419e35
push dword [ebp + 0x18]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00422155
jmp 0x419e37
cmp eax, 0x47
jne 0x419ebb
push dword [ebp + 0x14]
lea ebx, [edi + 0xac]
mov eax, edi
mov dword [ebx], esi
call fcn.00419ee1
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [ebx], 0
jmp 0x419e33
cmp eax, 0x18
jne 0x419e75
mov eax, dword [ebp + 0x10]
lea ebx, [edi + 0xac]
mov dword [ebx], esi
call fcn.00419fb8
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [ebx], 0
jne 0x419e35
jmp 0x419e75

Function at 0x42358d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov esi, ecx
call fcn.00476d84
push str.kbasesrv.exe
lea eax, [ebp - 4]
push eax
call fcn.00401000
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [edi - 0x10]
setne bl
call fcn.00401023
test bl, bl
je 0x4235dc
call fcn.00476ddc
test al, al
je 0x4235dc
mov dword [esi + 4], 5
xor al, al
jmp 0x423606
call fcn.004dc4d0
test eax, eax
je 0x4235ee
mov dword [esi + 4], 8
jmp 0x4235d8
call fcn.0042360b
test al, al
jne 0x423600
mov dword [esi + 4], 6
jmp 0x4235d8
xor eax, eax
inc eax
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42394d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x4239db
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x423984
cmp dword [ebp - 8], 2
jne 0x4239da
push esi
mov esi, dword [ebp + 0xc]
call fcn.00413449
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004010cd
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x4239d9
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4239cb
push eax
call fcn.00488c9a
pop ecx
mov edx, esi
call fcn.004010ac
mov dword [ebp - 0xc], 1
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x423e14
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov esi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.004291c9
lea eax, [esp + 0x10]
mov dword [esp], str.btbg.gif
call fcn.0042241f
lea eax, [esp + 0xc]
push eax
lea edi, [esp + 0x14]
call fcn.00407122
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str..kid
lea eax, [esp + 0x10]
call fcn.0042241f
lea eax, [esp + 0xc]
push eax
call fcn.00407122
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x423eb0
push str.scom.xml
mov eax, esi
lea ecx, [esp + 0x10]
call fcn.00413c3b
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [esi]
xor edi, edi
inc edi
cmp dword [eax - 0xc], ebx
je 0x423ed6
push eax
call fcn.00423f31
test eax, eax
je 0x423ed6
push esi
push 0x424153
push ebx
push edi
push dword [esi]
call fcn.004290dd
add esp, 0x14
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], ebx
je 0x423ef7
push eax
call fcn.00423f31
test eax, eax
je 0x423ef7
push ebx
push ebx
push edi
push edi
push dword [esi + 4]
call fcn.004290dd
add esp, 0x14
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], ebx
je 0x423f18
push eax
call fcn.00423f31
test eax, eax
je 0x423f18
push ebx
push ebx
push edi
push edi
push dword [esi + 8]
call fcn.004290dd
add esp, 0x14
push edi
call fcn.004291c9
pop ecx
lea esi, [esp + 0x10]
call fcn.0047949e
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4243d9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x512bd4]
push esi
push edi
mov ecx, 0x512bd4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call fcn.004246c0
lea edi, [ebp - 0xc]
call fcn.00424469
push dword [eax]
mov esi, dword [ebp - 8]
push esi
push str._sdesk_s
lea eax, [ebp - 4]
call fcn.00421c33
mov eax, dword [ebp - 0xc]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00401023
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42443e
lea eax, [ebp - 4]
push eax
call fcn.00424568
pop ecx
lea eax, [esi - 0x10]
call fcn.00401023
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x424456
test al, 0x10
je 0x42445d
push edi
call fcn.0047561c
pop ecx
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
pop esi
leave
ret
Function at 0x424469
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
and word [ebp - 0x214], 0
push 0x208
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.00489500
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x4244ba
push str.defaultuser
mov eax, edi
call fcn.0042241f
jmp 0x424503
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 4]
call fcn.0042241f
lea eax, [ebp - 4]
call fcn.00424970
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
jne 0x4244ec
push str.defaultuser
mov eax, edi
call fcn.0042241f
lea eax, [esi - 0x10]
jmp 0x4244fd
add esi, 0xfffffff0
mov eax, esi
call fcn.00423492
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00401023
pop esi
mov eax, edi
leave
ret

Function at 0x424568
Capabilities:
Check if file exists
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x512bd4]
push ebx
push esi
mov esi, 0x512bd4
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x512bd4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov edi, 0x105
push edi
lea esi, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.004010cd
push eax
xor ebx, ebx
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, edi
call fcn.00413401
lea edi, [ebp - 0xc]
call fcn.00424469
push dword [eax]
lea eax, [ebp - 4]
push dword [ebp - 8]
push str._skingsoftkdeskdatadesk_s
call fcn.00421c33
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4246a8
push 6
xor eax, eax
pop ecx
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [esi - 0xc]
inc esi
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487ce0
mov edi, eax
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.00489500
push dword [ebp - 4]
push esi
push edi
call fcn.00489c7b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
inc esi
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487ce0
lea ecx, [esi + esi]
push ecx
push ebx
push eax
mov dword [ebp - 0xc], eax
call fcn.00489500
mov eax, dword [ebp + 8]
push dword [eax]
push esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.00489c7b
add esp, 0x38
lea eax, [ebp - 0x2c]
push eax
mov word [ebp - 0x1c], 0x614
mov dword [ebp - 0x16], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
call fcn.0048ab32
push esi
call fcn.0048ab32
mov esi, dword [ebp - 4]
pop ecx
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
pop edi
pop esi
pop ebx
leave
ret