joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45972f
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4597a6
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4597a6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], esi
fild qword [ebp - 0x14]
fild qword [ebp - 0xc]
fchs
faddp st(1)
fmul qword [0x4e3560]
fcomp qword [0x4e3558]
fnstsw ax
test ah, 1
jne 0x4597a6
inc esi
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x45a8d9
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
mov eax, 0x4cc7c0
call fcn.004c4460
sub esp, 0x14
mov eax, dword [0x50038c]
push ebx
push esi
push edi
mov ecx, 0x50038c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._x_
lea eax, [ebp - 0x10]
call fcn.0040881a
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.0045a69d
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00408744
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x410]
mov dword [ebp - 0x14], edi
call fcn.00406fd9
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00407bab
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407bab
lea esi, [ebx + 0x3f0]
call fcn.004644c9
test eax, eax
je 0x45a9f1
cmp dword [esi + 8], 0x100000
jb 0x45a9f1
call fcn.00464578
test eax, eax
jne 0x45a992
mov ebx, esi
call fcn.004645d0
test eax, eax
mov ebx, dword [ebp + 8]
je 0x45a9f1
push dword [edi]
mov ecx, esi
push 0
call fcn.0046432b
lea eax, [ebp - 0x1c]
push 0x4dcc14
push eax
mov ecx, edi
call fcn.00408eb2
lea ecx, [ebp + 8]
push 0x501cb4
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00408744
add esp, 0x10
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.00465103
pop ecx
mov ecx, eax
call fcn.00465177
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00407bab
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407bab
mov edi, ebx
call fcn.0045a258
push ebx
call fcn.0045a769
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 8]
push str._res
push eax
call fcn.00408eb2
pop ecx
pop ecx
mov byte [ebp - 4], 5
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45aa3b
mov esi, dword [ebp + 8]
call fcn.00435514
push esi
push eax
call fcn.00408051
call fcn.004358b4
call fcn.004358dc
call fcn.0044f81f
call fcn.0044fb84
call fcn.0044fd0e
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00407bab
push 0
push 0x26
lea esi, [ebx + 0x3e4]
push 0x104
call fcn.00407cfe
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x45aa85
push eax
call fcn.004816be
pop ecx
mov edx, esi
call fcn.00407ca3
test edi, edi
jne 0x45aa9b
push str.c:program_files
push esi
call fcn.00408051
push str.Knsoft_
push esi
call fcn.004084d6
mov ebx, dword [ebx + 0x7f4]
push dword [ebx - 0xc]
mov eax, esi
push ebx
call fcn.0040888d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00407bab
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x45b23e
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x12c
mov esi, eax
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push ebx
lea edi, [esi + 0x24]
push 0x64
mov eax, edi
call fcn.0045c369
push 1
push 0xc8
mov eax, edi
call fcn.0045c369
push ebx
call fcn.0045b976
push ebx
push 1
mov eax, edi
call fcn.0045c31e
push ebx
push ebx
push esi
push 0x45b225
push ebx
push ebx
call fcn.00483dc5
add esp, 0x18
pop edi
mov dword [esi + 0x7e4], eax
pop esi
pop ebx
ret

Function at 0x45b635
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [edi]
lea esi, [ebp - 4]
call fcn.0044973e
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
call fcn.00407bab
mov eax, dword [edi]
push 3
pop esi
cmp dword [eax - 0xc], esi
jl 0x45b6f6
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45b678
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 1
je 0x45b6f6
mov ecx, esi
lea edx, [ebp - 4]
mov eax, edi
call fcn.00408708
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, esi
mov eax, dword [ebp - 4]
setne bl
add eax, 0xfffffff0
call fcn.00407bab
test bl, bl
je 0x45b6a5
push 2
pop eax
jmp 0x45b6f9
mov ebx, edi
call fcn.0045b5c2
test eax, eax
je 0x45b6b4
mov eax, esi
jmp 0x45b6f9
mov ecx, esi
lea edx, [ebp - 4]
mov eax, edi
call fcn.00408708
push dword [eax]
call fcn.0045972f
mov ebx, eax
mov eax, dword [ebp - 4]
neg ebx
sbb bl, bl
pop ecx
add eax, 0xfffffff0
inc bl
call fcn.00407bab
test bl, bl
je 0x45b6e3
push 4
jmp 0x45b6a2
mov eax, dword [edi]
cmp dword [eax - 0xc], 0x96
jle 0x45b6f2
push 5
jmp 0x45b6a2
xor eax, eax
jmp 0x45b6f9
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
Function at 0x45b6fd
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x4c95d0
call fcn.004c4460
sub esp, 0x444
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x44e]
push ebx
push eax
mov word [ebp - 0x450], bx
call fcn.00480cb0
add esp, 0xc
lea eax, [ebp - 0x450]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push 0x11
push dword [edi + 4]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [0x50038c]
mov ecx, 0x50038c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x105
lea esi, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00407cfe
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jge 0x45b78a
push 0x80070057
call fcn.00407ce1
mov esi, 0x4e1458
mov dword [eax - 0xc], ebx
push esi
mov word [eax], bx
call fcn.004816be
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x10]
call fcn.00407c1b
mov eax, dword [edi + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x38], eax
call fcn.0040c401
mov dword [ebp - 0x34], eax
xor esi, esi
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], 0x4e1464
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov ebx, eax
cmp ebx, esi
je 0x45b8c2
push 0x206
lea eax, [ebp - 0x246]
push esi
push eax
mov word [ebp - 0x248], si
call fcn.00480cb0
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [0x50038c]
mov ecx, 0x50038c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x248]
push eax
lea esi, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0044973e
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.0040888d
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00407bab
lea eax, [ebp - 0x18]
lea ecx, [edi + 0x7f4]
push eax
call fcn.0045bbac
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.0040888d
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00407bab
mov esi, dword [ebp - 0x14]
push esi
push dword [edi + 0x3bc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [ebp - 0x14]
call fcn.0045b635
push 0
push eax
mov eax, dword [ebp + 8]
push 0x46c
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.00407bab
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00407bab
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x45ba23
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, eax
and dword [esi + 0x3ec], 0
cmp dword [esp + 8], 0x61
je 0x45ba3b
cmp dword [esp + 8], 0x41
jne 0x45ba6f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x45ba6f
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
add esi, 0x3bc
push dword [esi]
call edi
push 0
push 0
push 0xb7
push dword [esi]
call edi
pop edi
pop esi
ret 4

Function at 0x45ba73
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4c7ad8
call fcn.004c4460
push ecx
mov eax, dword [0x50038c]
push esi
push edi
mov ecx, 0x50038c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x105
lea esi, [ebp - 0x10]
call fcn.00407cfe
push 0x104
push eax
push dword [ebx + 0x3bc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x45bac1
xor eax, eax
jmp 0x45bac8
push esi
call fcn.004816be
pop ecx
lea edx, [ebp - 0x10]
call fcn.00407ca3
lea edi, [ebp - 0x10]
call fcn.0045b635
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.00407bab
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x45bfbb
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
mov eax, dword [0x501d5c]
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x18], esi
je 0x45bfd6
mov edi, dword [eax + 4]
jmp 0x45bfd8
xor edi, edi
cmp edi, esi
jne 0x45bfe8
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
cmp edi, esi
je 0x45c00d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x45c00d
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45c00d
push esi
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
mov ebp, dword [esp + 0x24]
push edi
mov eax, ebp
mov dword [ebp + 0x34c], esi
call fcn.0045c68c
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x14], ecx
jne 0x45c039
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x45c151
mov eax, dword [0x501d5c]
cmp eax, esi
mov dword [esp + 0x1c], esi
je 0x45c050
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov dword [eax + 4], ecx
lea ebx, [ebp + 4]
push ebx
mov eax, edi
call fcn.00448d68
cmp dword [ebp + 0x33c], esi
je 0x45c0f0
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp ebp, dword [esp + 0x10]
je 0x45c0b3
push 1
push ebp
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x10]
je 0x45c0cf
push esi
push ebp
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x45c0ec
push esi
push esi
push 0xf
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebp, dword [esp + 0x24]
mov eax, ebp
call fcn.0045c853
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx]
mov dword [ebp + 0x34c], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x18], esi
je 0x45c133
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, esi
je 0x45c133
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x45c133
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x501d5c]
cmp eax, esi
je 0x45c143
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
push dword [ebx]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp + 0x350]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x45e176
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x45e1c2
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x104]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x45e1c2
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x1e0]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
cmp dword [esi + 0x2d8], 0
je 0x45e23a
lea ebx, [esi + 0x2e8]
cmp dword [ebx], 0
je 0x45e1df
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x2d8], edi
jne 0x45e233
push edi
call fcn.00437241
mov edi, eax
movzx eax, word [ebp + 0x10]
pop ecx
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x205
call fcn.00437647
mov eax, dword [esi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x10]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x2d8], 0
pop edi
pop ebx
leave
ret 0xc
Function at 0x45e500
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x2e8]
cmp dword [edi], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
je 0x45e531
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov ebx, dword [ebp + 0x10]
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x45e575
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x104]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x45e575
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x1e0]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x2d4]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x45e6c9
push eax
call fcn.00437241
mov edi, eax
test edi, edi
pop ecx
je 0x45e648
mov eax, dword [edi + 0x10]
push 2
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x45e5bc
push 1
push edi
push esi
call fcn.0045c811
movzx eax, word [ebp + 0xc]
movzx ebx, bx
shl ebx, 0x10
or ebx, eax
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.00437647
mov eax, dword [ebp - 4]
cmp dword [esi + 0x2d4], eax
jne 0x45e612
mov ecx, dword [edi + 0x40]
xor eax, eax
cmp ecx, eax
je 0x45e604
cmp word [ecx], ax
je 0x45e604
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x45e648
cmp dword [edi + 0x10], eax
je 0x45e648
mov dword [ebp - 0xc], 1
jmp 0x45e648
mov eax, dword [edi]
push 1
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x45e631
push 1
push edi
push esi
call fcn.0045c811
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x2a3
call fcn.00437647
mov dword [ebp - 0x10], 1
xor eax, eax
cmp dword [ebp - 0xc], eax
mov dword [esi + 0x2d4], eax
je 0x45e68a
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x20], 1
call dword [eax + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x45e6c9
cmp dword [ebp - 0x10], eax
je 0x45e6c9
mov ecx, dword [ebp - 8]
cmp ecx, eax
je 0x45e6c9
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x28]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
add esi, 0x2d0
cmp eax, dword [esi]
jne 0x45e6c9
and dword [esi], 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4617b5
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x4c9518
call fcn.004c4460
sub esp, 0x278
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x4617d6
xor eax, eax
jmp 0x4618ad
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4617cf
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x264]
cmp esi, ebx
mov dword [ebp - 0x20], esi
je 0x4617cf
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x4617cf
lea eax, [ebp + 0xb]
lea edi, [esi + 2]
push eax
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], ebx
mov byte [ebp + 0xb], bl
call fcn.004619ed
mov edi, dword [ebp - 0x20]
push ebx
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
mov dword [ebp - 4], ebx
call fcn.0040bf94
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x461893
cmp dword [ebp - 0x1c], edi
jne 0x461893
cmp edi, ebx
mov dword [ebp + 8], ebx
jbe 0x46187a
push dword [ebp + 8]
lea esi, [ebp - 0x30]
call fcn.0040bf94
xor byte [eax], 0x4e
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jb 0x461864
push ebx
lea esi, [ebp - 0x30]
call fcn.0040bf94
push eax
push dword [ebp + 0xc]
call fcn.004093f0
mov dword [ebp - 0x14], 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], ebx
je 0x4618aa
push dword [ebp - 0x2c]
call fcn.00480959
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x462c33
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4c7a93
call fcn.004c4460
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x4fb0ac]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
push 2
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x462c8b
call fcn.004642ee
mov esi, eax
jmp 0x462d8c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x462ca8
call fcn.004642ee
jmp 0x462d81
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x462c9e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp + 8], edi
jae 0x462cee
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x462ce4
lea eax, [ebp - 0x424]
call fcn.00462db8
mov eax, 0x8007000e
jmp 0x462da7
push 2
push eax
mov byte [ebp - 4], 2
call fcn.00462de2
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x462d12
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00462dc1
jmp 0x462d1e
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x462d39
mov ebx, dword [ebp - 0x424]
cmp ebx, esi
jne 0x462d4a
mov esi, 0x8007000e
jmp 0x462d83
call dword [0x4fb0ac]
push edi
push ebx
push edi
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x462c9e
mov ecx, dword [ebp - 0x424]
push dword [ebp + 0x18]
mov word [ecx + eax*2], si
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x1c]
call fcn.00462e07
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x462da5
lea eax, [ebp - 0x424]
call fcn.00462db8
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x463c23
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x463c36
push 0x80004005
call fcn.00407ce1
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x463c3d
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x463cef
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.0042bfa8
mov edi, eax
cmp edi, esi
je 0x463d2c
cmp dword [ebp - 8], esi
je 0x463d28
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x463d99
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x463d4a
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.00463cef
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x463da0
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 0x463d34
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x463d80
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 0x463d97
push dword [ebp - 8]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x463dae
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x463d99

Function at 0x46432b
Capabilities:
Delete file

Disassembly:
mov eax, 0x4ca138
call fcn.004c4460
sub esp, 0x10
mov eax, dword [0x50038c]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, 0x50038c
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.004643e8
mov ebx, eax
test ebx, ebx
jne 0x46437c
mov dword [esi + 0x1c], 1
mov esi, dword [ebp - 0x18]
jmp 0x4643cc
push 0x28
call fcn.00417421
test eax, eax
pop ecx
je 0x464390
push eax
call fcn.00427174
jmp 0x464392
xor eax, eax
test eax, eax
mov esi, eax
je 0x4643cc
push dword [ebp + 0xc]
mov ecx, dword [eax]
push dword [ebp - 0x10]
push ebx
push eax
call dword [ecx]
test eax, eax
je 0x4643c5
xor esi, esi
lea eax, [edi - 0x10]
call fcn.00407bab
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
mov dword [ebp - 0x14], 1
cmp dword [edi - 0xc], 0
je 0x4643d9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x4643e3
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x14]
jmp 0x4643aa