joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44992e
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20020
call fcn.004333f0
push esi
lea eax, [ebp - 0x20020]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.0044a806
lea eax, [ebp - 0x10020]
push eax
mov edx, 0x7fff
mov ecx, esi
call fcn.0044a806
pop ecx
pop ecx
lea eax, [ebp - 0x10020]
push eax
lea eax, [ebp - 0x20020]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
pop esi
test eax, eax
jne 0x4499b7
cmp byte [ebp + 8], al
je 0x4499b3
lea eax, [ebp - 0x10020]
push eax
lea eax, [ebp - 0x20020]
push eax
call fcn.00425123
pop ecx
pop ecx
test eax, eax
je 0x4499af
lea eax, [ebp - 0x10020]
push eax
lea eax, [ebp - 0x20020]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
lea ecx, [ebp - 0x20020]
call fcn.0044abb2
test al, al
je 0x4499b3
lea ecx, [ebp - 0x10020]
call fcn.0044abb2
test al, al
je 0x449a61
cmp byte [ebp + 8], 0
je 0x4499b3
lea eax, [ebp - 0x20020]
push str..
push eax
call fcn.00424834
lea eax, [ebp - 0x20020]
push eax
call fcn.0042481b
xor ecx, ecx
mov word [ebp + eax*2 - 0x2001e], cx
lea eax, [ebp - 0x10020]
push eax
call fcn.0042481b
xor ecx, ecx
mov word [ebp + eax*2 - 0x1001e], cx
lea eax, [ebp - 0x20020]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10020]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov eax, 0x614
add esp, 0x10
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
leave
ret
lea ecx, [ebp - 0x10020]
call fcn.00449cc1
test al, al
je 0x4499b3
lea ecx, [ebp - 0x10020]
call fcn.0044abb2
test al, al
jmp 0x4499dd
Function at 0x449a86
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40864
call fcn.004333f0
push ebx
push esi
push edi
lea eax, [ebp - 0x20860]
mov esi, edx
mov edi, 0x7fff
xor ebx, ebx
push eax
mov edx, edi
mov byte [ebp - 1], bl
call fcn.0044a806
pop ecx
lea eax, [ebp - 0x40860]
push eax
mov edx, edi
mov ecx, esi
call fcn.0044a806
pop ecx
lea edx, [ebp - 0x40860]
lea ecx, [ebp - 0x20860]
call fcn.0044ab45
lea ecx, [ebp - 0x20860]
mov byte [ebp - 3], al
call fcn.0044abb2
mov esi, str..
test al, al
je 0x449af9
lea eax, [ebp - 0x20860]
push esi
push eax
call fcn.00424834
pop ecx
pop ecx
lea ecx, [ebp - 0x40860]
call fcn.0044abb2
test al, al
je 0x449b17
lea eax, [ebp - 0x40860]
push esi
push eax
call fcn.00424834
pop ecx
pop ecx
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20860]
push eax
call fcn.00425949
add esp, 0x14
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x20860]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [ebp - 2], al
cmp esi, 0xffffffff
je 0x449cb0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp al, 1
jne 0x449cb0
test byte [ebp - 0x260], 0x10
jne 0x449c82
lea eax, [ebp - 0x30860]
push eax
lea eax, [ebp - 0x40860]
push eax
lea eax, [ebp - 0x860]
push eax
lea edx, [ebp - 0x460]
lea ecx, [ebp - 0x234]
call fcn.0044a296
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10860]
push eax
call fcn.00424863
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x10860]
push eax
call fcn.00424834
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x10860]
push eax
call fcn.00424834
add esp, 0x18
lea ecx, [ebp - 0x30860]
call fcn.0041fdfd
test al, al
je 0x449c19
cmp byte [ebp + 8], bl
je 0x449ca5
lea eax, [ebp - 0x30860]
push eax
lea eax, [ebp - 0x10860]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
lea eax, [ebp - 0x30860]
push eax
je 0x449c3a
call edi
cmp byte [ebp + 0xc], 1
lea eax, [ebp - 0x30860]
jne 0x449c6b
cmp byte [ebp - 3], bl
jne 0x449c4d
push eax
lea eax, [ebp - 0x10860]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x449c7a
lea eax, [ebp - 0x10860]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x449cb3
jmp 0x449c7e
push ebx
push eax
lea eax, [ebp - 0x10860]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x449ca5
lea eax, [ebp - 0x10860]
push eax
call edi
jmp 0x449c7a
push ebx
push eax
lea eax, [ebp - 0x10860]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x449ca5
mov byte [ebp - 1], 1
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [ebp - 2]
jne 0x449b69
mov al, bl
mov byte [ebp - 2], al
jmp 0x449b69
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x449cbc
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x449cc1
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10000
call fcn.004333f0
push ebx
push esi
mov edx, ecx
push 0x7fff
lea ecx, [ebp - 0x10000]
call fcn.004159bb
lea eax, [ebp - 0x10000]
push eax
call fcn.0042481b
pop ecx
pop ecx
push 0x5c
pop ebx
test eax, eax
je 0x449d0b
cmp word [ebp + eax*2 - 0x10002], bx
jne 0x449d0b
xor ecx, ecx
mov word [ebp + eax*2 - 0x10002], cx
lea eax, [ebp - 0x10000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x449d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x449d3f
push 0
lea eax, [ebp - 0x10000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x449d44
mov al, 1
jmp 0x449d9e
cmp eax, 3
jne 0x449d9c
lea ecx, [ebp - 0x10000]
call fcn.0044b45b
mov esi, eax
push ebx
push esi
call fcn.00426033
pop ecx
pop ecx
test eax, eax
jne 0x449d67
push esi
call fcn.0042309e
pop ecx
jmp 0x449d9c
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
call fcn.00449cc1
push esi
mov bl, al
call fcn.0042309e
pop ecx
test bl, bl
je 0x449d94
push 0
lea eax, [ebp - 0x10000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov al, bl
jmp 0x449d9e
test al, 0x10
jne 0x449d3b
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x449da2
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10460
call fcn.004333f0
push ebx
lea eax, [esp + 0x464]
push esi
xor ebx, ebx
push eax
mov edx, 0x7fff
mov byte [esp + 0x13], bl
call fcn.0044a806
pop ecx
lea ecx, [esp + 0x468]
call fcn.0044abb2
test al, al
je 0x449df1
lea eax, [esp + 0x468]
push str..
push eax
call fcn.00424834
pop ecx
pop ecx
push ebx
push ebx
lea eax, [esp + 0x270]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x478]
push eax
call fcn.00425949
add esp, 0x14
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [esp + 0xe], al
cmp esi, 0xffffffff
je 0x449eaa
cmp al, 1
jne 0x449eaa
test byte [esp + 0x18], 0x10
jne 0x449e8e
mov byte [esp + 0xf], al
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call fcn.00424863
lea eax, [esp + 0x270]
push eax
lea eax, [esp + 0x474]
push eax
call fcn.00424834
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x47c]
push eax
call fcn.00424834
add esp, 0x18
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x449eae
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x449e30
mov al, bl
mov byte [esp + 0xe], al
jmp 0x449e30
mov bl, byte [esp + 0xf]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fec0
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50000
call fcn.004333f0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20004]
push eax
push 0x7fff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x45001d
push ebx
lea eax, [ebp - 0x20004]
push eax
lea eax, [ebp - 0x10004]
push str.___s
push eax
call fcn.0042526b
lea eax, [ebp - 0x10004]
push eax
call fcn.0042481b
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x10006], 0x5c
jne 0x44ff38
cmp word [ebp + ebx*2 - 0x10008], 0x3a
je 0x44ff38
xor eax, eax
mov word [ebp + ebx*2 - 0x10006], ax
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44ff52
cmp byte [ebp + 0x10], al
je 0x45000e
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x450005
push 0x2fffa
lea eax, [ebp - 0x50000]
push 0
push eax
call fcn.00424890
lea eax, [ebx + ebx]
mov word [ebp - 0x4fff6], ax
mov eax, dword [ebp - 0x4fff6]
add eax, 2
mov word [ebp - 0x4fff4], ax
push 0x7fff
lea eax, [ebp - 0x10004]
push eax
lea eax, [ebp - 0x4fff0]
push eax
mov dword [ebp - 0x50000], 0xa0000003
call fcn.00425ef9
mov eax, dword [ebp - 0x4fff6]
add esp, 0x18
add eax, 0xc
xor edx, edx
push edx
mov word [ebp - 0x4fffc], ax
lea ecx, [ebp + 8]
push ecx
push edx
movzx eax, ax
push edx
add eax, 8
push eax
lea eax, [ebp - 0x50000]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
test eax, eax
jne 0x450012
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x45001b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 0xc
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x680f4cc4
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x707f75bb
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4028e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.00404990
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
test al, 0xf
mov ecx, eax
sete dl
shr ecx, 9
lea edx, [edx*4 + 2]
and dl, cl
movsx ecx, al
inc dl
movsx edx, dl
imul edx, ecx
mov ecx, eax
shr ecx, 6
xor cl, al
add dl, cl
mov byte [ebp + eax - 0x3a988], dl
inc eax
cmp eax, 0x3a980
jb 0x402963
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403bdc
mov esp, ebp
pop ebp
ret
Function at 0x402fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.00404990
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
mov ecx, ebx
mov eax, ebx
shr eax, 0xb
mov esi, ebx
shr ecx, 0xd
not esi
and cl, al
mov eax, esi
shr eax, 9
and al, 3
movsx ecx, cl
movsx eax, al
imul ecx, eax
movsx eax, bl
movsx edx, cl
mov ecx, esi
imul edx, eax
mov eax, ebx
and eax, 0x6000
shr ecx, 0xb
or eax, 0x8000
shr esi, 0xb
shr eax, 0xd
and ecx, 1
imul eax, ebx
and esi, 1
shr eax, cl
mov ecx, esi
xor dl, al
mov eax, ebx
and eax, 0x6000
and dl, 0x7f
or eax, 0x8000
shr eax, 0xd
imul eax, ebx
shr eax, cl
xor dl, al
mov byte [ebp + ebx - 0x3a988], dl
inc ebx
cmp ebx, 0x3a980
jb 0x403045
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403bdc
mov esp, ebp
pop ebp
ret
Function at 0x401425
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435fdc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push edi
mov dword [ebp - 0x218], 1
push 0x4966c4
lea ecx, [ebp - 0x228]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x220], 4
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x224]
push eax
push 0xf003f
push 0
push str.SOFTWAREZKYRCheckToolOS
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4014b4
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x214], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x220], 0x200
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push str.OSType
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x228]
call sub.MFC42.DLL_CString::operator_2
push str.PeOS
lea eax, [ebp - 0x228]
push eax
call fcn.00406050
and eax, 0xff
test eax, eax
je 0x401533
mov dword [ebp - 0x218], 0
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x22c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40158c
mov eax, 1
jmp 0x40158e
xor eax, eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43600b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004190e0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40169b
mov eax, dword [ebp - 0x10]
and eax, 0x10
test eax, eax
je 0x40169b
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x14]
jmp 0x4016b4
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x403604
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43629f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
push 0x496700
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40367a
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x24]
jmp 0x403790
push 0x128
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 0x128
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40376b
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp + 8]
call fcn.004190e0
push eax
lea ecx, [ebp - 0x18]
call fcn.004061f0
test eax, eax
jne 0x403702
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x403702
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40376b
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp + 8]
call fcn.004190e0
push eax
lea ecx, [ebp - 0x18]
call fcn.004061f0
test eax, eax
jne 0x403769
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x403767
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x40376b
jmp 0x403702
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40379e
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4362b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 8]
call fcn.004190e0
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x148], 0
jne 0x40381b
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x150], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x150]
jmp 0x40390e
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
jne 0x403856
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x154], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x154]
jmp 0x40390e
mov dword [ebp - 0x140], 0x128
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4038e3
mov eax, dword [ebp - 0x138]
cmp eax, dword [ebp - 0x148]
jne 0x4038cb
mov dword [ebp - 0x14c], 0
mov ecx, dword [ebp - 0x138]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x4038c9
push 0
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x14], eax
jmp 0x4038e3
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x18], eax
jmp 0x403876
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x158], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4059de
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436504
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push edi
mov dword [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 1
mov byte [ebp - 0x434], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x433]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x30], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x448]
mov edx, dword [ecx]
push edx
push str._s_SOFTWAREMicrosoftWindows_NTCurrentVersion
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x440]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x438]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x434]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
je 0x405adc
push 0x49672c
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp - 0x444]
or al, 1
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x405b40
mov dword [ebp - 0x34], 0x20
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x480a1c
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x43c], eax
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0x444]
or ecx, 1
mov dword [ebp - 0x444], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret