joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033fe
Capabilities:
Delete file

Disassembly:
mov eax, 0x4109ba
call fcn.00409514
sub esp, 0x4c
mov ecx, dword [ebp + 0x1c]
mov eax, dword [0x41748c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x54]
push ecx
xor eax, ebp
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ecx
push eax
push 1
call fcn.004039ea
add esp, 0x10
test eax, eax
mov dword [ebp - 0x4c], eax
jne 0x4034ff
push dword [ebp + 0x14]
push esi
push edi
push dword [ebp - 0x58]
push ebx
push dword [ebp - 0x50]
call fcn.00403c71
xor edi, edi
add esp, 0x18
cmp eax, edi
mov dword [ebp - 0x4c], eax
jl 0x4034f1
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp eax, edi
mov dword [ebp - 0x4c], eax
jge 0x4034f1
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401ff6
push 0xffffffffffffffff
push 0x4124e4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00403395
push eax
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004033e0
push 0x4124dc
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00401c8a
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4034bf
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4034d4
lea eax, [ebp - 0x44]
push eax
call esi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.004014cd
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004014cd
push 1
push dword [ebp - 0x50]
call fcn.00403ac8
pop ecx
pop ecx
jmp 0x403515
cmp eax, 0x8004a024
jne 0x403515
cmp dword [ebp - 0x54], 0
je 0x403515
push dword [ebp - 0x54]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x4c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408736
leave
ret
Function at 0x403531
Capabilities:
Delete file

Disassembly:
mov eax, 0x4109da
call fcn.00409514
sub esp, 0x664
mov eax, dword [0x41748c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x668], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x664], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x670], edi
mov dword [ebp - 0x66c], eax
call fcn.00408dcd
test eax, eax
pop ecx
je 0x403785
push edi
call fcn.00408dcd
test eax, eax
pop ecx
je 0x403785
push dword [ebp - 0x668]
call fcn.00408dcd
test eax, eax
pop ecx
je 0x403785
push dword [ebp - 0x664]
call fcn.00408dcd
test eax, eax
pop ecx
je 0x403785
xor edi, edi
cmp dword [ebp + 0x1c], edi
je 0x403785
cmp dword [ebp + 0x24], edi
je 0x403785
push str.xlnetdispat
call fcn.004032b7
test eax, eax
pop ecx
je 0x4035eb
mov eax, 0xfffff838
jmp 0x40378a
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.004099d7
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
pop ecx
pop ecx
push dword [ebp - 0x664]
lea eax, [ebp - 0x220]
push eax
call esi
push edi
push edi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004096e0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004099d7
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004099ad
add esp, 0x24
push edi
push edi
push dword [ebp + 0x24]
lea eax, [ebp - 0x428]
push ebx
push edi
push 1
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfW]
test eax, eax
jne 0x40367a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40378a
push ebx
lea ecx, [ebp - 0x644]
call fcn.00401ff6
push 0xffffffffffffffff
push 0x4124e4
lea ecx, [ebp - 0x644]
mov dword [ebp - 4], edi
call fcn.00403395
push eax
push edi
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0x644]
call fcn.004033e0
push 0x4124dc
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 1
call fcn.00401c8a
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 0x668]
lea eax, [ebp - 0x220]
push eax
call esi
push dword [0x4170dc]
lea eax, [ebp - 0x220]
push str.xl_netdispat
push dword [ebp + 0x1c]
push dword [ebp - 0x66c]
push eax
push dword [ebp - 0x670]
call fcn.004033fe
mov ebx, eax
add esp, 0x18
cmp ebx, edi
jge 0x403754
cmp dword [ebp - 0x62c], 8
mov eax, dword [ebp - 0x640]
jae 0x403723
lea eax, [ebp - 0x640]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
cmp dword [ebp - 0x648], 8
mov eax, dword [ebp - 0x65c]
jae 0x403741
lea eax, [ebp - 0x65c]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x403750
mov eax, ebx
mov esi, eax
jmp 0x403765
cmp ebx, 0x4a020
jne 0x403763
mov esi, 0xfffff838
jmp 0x403765
xor esi, esi
push edi
push 1
lea ecx, [ebp - 0x660]
call fcn.004014cd
push edi
push 1
lea ecx, [ebp - 0x644]
call fcn.004014cd
mov eax, esi
jmp 0x40378a
mov eax, 0xfffff831
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408736
leave
ret
Function at 0x4037a3
Capabilities:
Delete file

Disassembly:
mov eax, 0x410a04
call fcn.00409514
sub esp, 0x84
mov eax, dword [0x41748c]
mov ecx, dword [ebp + 0x10]
xor eax, ebp
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x90], ecx
jne 0x4037de
mov eax, 0x80004005
jmp 0x4039c3
push esi
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push eax
push 1
call fcn.004039ea
add esp, 0x10
cmp eax, edi
jne 0x40399b
push str.xl_netdispat
push dword [ebp - 0x88]
call fcn.00403b98
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x84], eax
mov esi, 0x4a020
je 0x403825
cmp eax, esi
jne 0x403849
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp eax, edi
mov dword [ebp - 0x84], eax
je 0x403849
cmp eax, esi
je 0x403849
mov dword [ebp - 0x84], 0x80004005
push 1
push dword [ebp - 0x88]
call fcn.00403ac8
cmp dword [ebp - 0x84], edi
pop ecx
pop ecx
jl 0x403987
cmp ebx, edi
je 0x40396a
cmp dword [ebp - 0x90], edi
je 0x40396a
push ebx
lea ecx, [ebp - 0x48]
call fcn.00401ff6
push 0xffffffffffffffff
mov ebx, 0x4124e4
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], edi
call fcn.00403395
push eax
push edi
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x48]
call fcn.004033e0
mov edi, 0x4124dc
push edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00401c8a
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4038c0
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x4038d5
lea eax, [ebp - 0x7c]
push eax
call esi
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.004014cd
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.004014cd
push dword [ebp - 0x90]
lea ecx, [ebp - 0x2c]
call fcn.00401ff6
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.00403395
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004033e0
push edi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00401c8a
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40393d
lea eax, [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
jae 0x40394c
lea eax, [ebp - 0x60]
push eax
call esi
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004014cd
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004014cd
mov esi, 0x4a020
cmp dword [ebp - 0x84], esi
je 0x40398f
push str.xlnetdispat
call fcn.004032b7
test eax, eax
pop ecx
je 0x403987
mov dword [ebp - 0x84], esi
cmp dword [ebp - 0x84], esi
jne 0x4039bc
mov dword [ebp - 0x84], 0xfffff838
jmp 0x4039bc
cmp eax, 0x8004a024
jne 0x4039b6
cmp dword [ebp - 0x8c], edi
je 0x4039b6
push dword [ebp - 0x8c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x84], edi
mov eax, dword [ebp - 0x84]
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop ebx
call fcn.00408736
leave
ret
Function at 0x403c71
Capabilities:
Delete file

Disassembly:
mov eax, 0x410a24
call fcn.00409514
sub esp, 0x45c
mov eax, dword [0x41748c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x468], eax
mov eax, dword [ebp + 0x18]
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x460], eax
je 0x403d30
push edi
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.004096e0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004099d7
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004099ad
add esp, 0x24
push edi
push edi
push dword [ebp + 0x1c]
lea eax, [ebp - 0x220]
push dword [ebp - 0x460]
push edi
push 1
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfW]
test eax, eax
jne 0x403d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x403d22
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 0x45c], eax
jne 0x403e07
push dword [ebp - 0x468]
push dword [ebp - 0x464]
push ebx
call fcn.00403b21
add esp, 0xc
cmp eax, edi
mov dword [ebp - 0x45c], eax
jne 0x403d5b
mov eax, dword [ebx]
push ebx
call dword [eax + 0x14]
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], edi
jge 0x403e07
push dword [ebp - 0x460]
lea ecx, [ebp - 0x43c]
call fcn.00401ff6
push 0xffffffffffffffff
push 0x4124e4
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], edi
call fcn.00403395
push eax
push edi
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x43c]
call fcn.004033e0
push 0x4124dc
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 1
call fcn.00401c8a
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x403dca
lea eax, [ebp - 0x438]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
cmp dword [ebp - 0x440], 8
mov eax, dword [ebp - 0x454]
jae 0x403de8
lea eax, [ebp - 0x454]
push eax
call esi
push edi
push 1
lea ecx, [ebp - 0x458]
call fcn.004014cd
push edi
push 1
lea ecx, [ebp - 0x43c]
call fcn.004014cd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x45c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408736
leave
ret
Function at 0x405df0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x410b8e
call fcn.00409514
sub esp, 0xcc
push ebx
push esi
push edi
mov edi, ecx
push 1
push 3
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x18], edi
call fcn.004057c1
mov ebx, dword [edi + 0x24]
mov esi, dword [ebx]
and dword [ebp - 4], 0
cmp esi, ebx
mov dword [ebp - 0x14], esi
je 0x405eef
mov edi, 0x412640
cmp dword [esi + 0x24], 8
jb 0x405e3b
mov eax, dword [esi + 0x10]
jmp 0x405e3e
lea eax, [esi + 0x10]
push edi
push 0x5d
push eax
lea eax, [ebp - 0xb4]
push 0x5b
push eax
call fcn.0040539b
pop ecx
pop ecx
push eax
call fcn.004054fe
pop ecx
pop ecx
push eax
call fcn.0040539b
pop ecx
pop ecx
push eax
call fcn.004054fe
mov esi, dword [esi + 0x2c]
mov eax, dword [esi]
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
jmp 0x405ec6
cmp dword [eax + 0x24], 8
jb 0x405e7f
mov ecx, dword [eax + 0x10]
jmp 0x405e82
lea ecx, [eax + 0x10]
cmp dword [eax + 0x40], 8
jb 0x405e8d
mov eax, dword [eax + 0x2c]
jmp 0x405e90
add eax, 0x2c
push edi
push eax
push 0x3d
push ecx
lea eax, [ebp - 0xb4]
push eax
call fcn.004054fe
pop ecx
pop ecx
push eax
call fcn.0040539b
pop ecx
pop ecx
push eax
call fcn.004054fe
pop ecx
pop ecx
push eax
call fcn.004054fe
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00404cdf
mov eax, dword [ebp - 0x10]
cmp eax, esi
jne 0x405e74
lea eax, [ebp - 0xb4]
push edi
push eax
call fcn.004054fe
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call fcn.00404c67
mov esi, dword [ebp - 0x14]
cmp esi, ebx
jne 0x405e30
mov edi, dword [ebp - 0x18]
cmp dword [edi + 0x1c], 8
jb 0x405efa
mov eax, dword [edi + 8]
jmp 0x405efd
lea eax, [edi + 8]
push 0
push 0x80
push 2
push 0
xor edi, edi
inc edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x405fb9
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00405a77
mov esi, dword [eax + 0x14]
xor ebx, ebx
push ebx
push edi
lea ecx, [ebp - 0x34]
call fcn.004014cd
cmp esi, ebx
je 0x405fb0
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00405a77
mov esi, eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.00405a77
cmp dword [eax + 0x18], 8
mov ecx, dword [esi + 0x14]
jb 0x405f7b
mov eax, dword [eax + 4]
jmp 0x405f7e
add eax, 4
push ebx
lea edx, [ebp - 0x14]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edi
lea ecx, [ebp - 0x34]
call fcn.004014cd
push ebx
push edi
lea ecx, [ebp - 0xd8]
call fcn.004014cd
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00404e0a
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], vtable.std::basic_ios_unsigned_short_int__struct_std::char_traits_unsigned_short_int__.0
call fcn.00408099
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x406e02
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x410c48
call fcn.00409514
mov eax, 0x2084
call fcn.00409a80
mov eax, dword [0x41748c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, ebp
push 7
pop esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2074], ecx
lea eax, [ebp - 0x2010]
xor edi, edi
push edi
lea ecx, [ebp - 0x2048]
mov dword [ebp - 0x206c], ebx
mov dword [ebp - 0x2068], eax
mov dword [ebp - 0x2030], esi
call fcn.0040120b
push edi
lea ecx, [ebp - 0x202c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x2014], esi
call fcn.0040120b
push edi
lea ecx, [ebp - 0x2064]
mov dword [ebp - 0x204c], esi
call fcn.0040120b
cmp dword [ebx + 0x18], 8
mov byte [ebp - 4], 2
jb 0x406e8b
mov eax, dword [ebx + 4]
jmp 0x406e8e
lea eax, [ebx + 4]
push eax
push 0x800
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp word [ebp - 0x2010], di
je 0x406fdb
cmp dword [ebx + 0x18], 8
jb 0x406eb9
mov eax, dword [ebx + 4]
jmp 0x406ebc
lea eax, [ebx + 4]
push eax
push 0x800
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x2068]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp word [ebp - 0x1010], di
lea esi, [ebp - 0x1010]
je 0x406fbb
mov dword [ebp - 0x2070], 0x3d
push esi
lea ecx, [ebp - 0x202c]
call fcn.00401ca7
push 1
push edi
lea eax, [ebp - 0x2070]
push eax
lea ecx, [ebp - 0x202c]
call fcn.00404b5a
mov ebx, eax
push ebx
push edi
lea eax, [ebp - 0x202c]
push eax
lea ecx, [ebp - 0x2048]
call fcn.00401a08
mov eax, dword [ebp - 0x2018]
sub eax, ebx
push eax
inc ebx
push ebx
lea eax, [ebp - 0x202c]
push eax
lea ecx, [ebp - 0x2064]
call fcn.00401a08
push dword [ebp - 0x2068]
lea ecx, [ebp - 0x2090]
call fcn.00401ff6
mov ecx, dword [ebp - 0x2074]
lea eax, [ebp - 0x2048]
push eax
lea eax, [ebp - 0x2090]
push eax
add ecx, 0x20
mov byte [ebp - 4], 3
call fcn.00406d24
mov ecx, eax
call fcn.004064ca
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x2064]
push ecx
mov ecx, eax
call fcn.00401a08
push edi
push 1
lea ecx, [ebp - 0x2090]
mov byte [ebp - 4], 2
call fcn.004014cd
push esi
call fcn.00408dcd
lea esi, [esi + eax*2 + 2]
cmp word [esi], di
pop ecx
jne 0x406ef2
mov ebx, dword [ebp - 0x206c]
mov esi, dword [ebp - 0x2068]
push esi
call fcn.00408dcd
lea eax, [esi + eax*2 + 2]
cmp word [eax], di
pop ecx
mov dword [ebp - 0x2068], eax
jne 0x406eae
push edi
push 1
lea ecx, [ebp - 0x2064]
call fcn.004014cd
push edi
push 1
lea ecx, [ebp - 0x202c]
call fcn.004014cd
push edi
push 1
lea ecx, [ebp - 0x2048]
call fcn.004014cd
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408736
leave
ret 4
Function at 0x4074bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
shl eax, 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40751d
cmp dword [ebp + 0x10], 1
je 0x4074fb
cmp dword [ebp + 0x10], 2
jne 0x407512
test edi, edi
mov eax, dword [ebp - 4]
je 0x407517
test al, 1
jne 0x407512
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x407517
push 0xd
pop eax
jmp 0x40751d
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x407523
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x41748c]
xor eax, ebp
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40757d
cmp dword [ebp - 0x7c], 5
jne 0x407573
push 2
pop eax
cmp dword [ebp - 0x78], eax
je 0x407580
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
je 0x407580
cmp dword [ebp - 0x78], 0
jne 0x40757d
xor eax, eax
jmp 0x407580
cmp dword [ebp - 0x7c], 6
jne 0x40757d
push 3
jmp 0x40757f
push 4
pop eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00408736
add ebp, 0x98
leave
ret

Function at 0x4079d6
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x410d13
call fcn.00409514
sub esp, 0x25c
mov eax, dword [0x41748c]
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, ebx
mov dword [ebp - 0x260], eax
call fcn.0040174a
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x407a21
mov eax, 0x80004005
jmp 0x407aca
lea eax, [ebp - 0x258]
push eax
push esi
mov dword [ebp - 0x258], 0x22c
call sub.KERNEL32.dll_Process32FirstW
cmp eax, edi
mov dword [ebp - 0x25c], 1
je 0x407abd
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401ff6
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], edi
call fcn.00404d5c
test eax, eax
je 0x407a97
lea eax, [ebp - 0x258]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x264], eax
call fcn.004014cd
cmp dword [ebp - 0x264], edi
jne 0x407a46
jmp 0x407abd
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x268]
push eax
mov ecx, ebx
call fcn.00407945
push edi
push 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x25c], edi
call fcn.004014cd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408736
leave
ret
Function at 0x409b41
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x412900
call fcn.00408ee0
mov edi, 0x94
mov eax, edi
call fcn.00409a80
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x417d78], ecx
mov eax, dword [esi + 4]
mov dword [0x417d84], eax
mov edx, dword [esi + 8]
mov dword [0x417d88], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x417d7c], esi
cmp ecx, 2
je 0x409ba1
or esi, 0x8000
mov dword [0x417d7c], esi
shl eax, 8
add eax, edx
mov dword [0x417d80], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x409bda
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409bda
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x409bf2
cmp eax, 0x20b
je 0x409bdf
mov dword [ebp - 0x1c], edi
jmp 0x409c06
cmp dword [ecx + 0x84], 0xe
jbe 0x409bda
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x409c00
cmp dword [ecx + 0x74], 0xe
jbe 0x409bda
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.0040c0bc
pop ecx
test eax, eax
jne 0x409c32
cmp dword [0x417d60], 2
je 0x409c1f
call fcn.0040d4fc
push 0x1c
call fcn.0040d384
push 0xff
call fcn.0040a3f2
pop ecx
pop ecx
call fcn.0040dd23
mov dword [ebp - 4], edi
call fcn.0040db78
test eax, eax
jge 0x409c4b
push 0x1b
call fcn.00409b1c
pop ecx
call fcn.0040dad9
mov dword [0x41855c], eax
call fcn.0040d96f
mov dword [0x417d5c], eax
call fcn.0040d8d9
test eax, eax
jge 0x409c70
push 8
call fcn.00409b1c
pop ecx
call fcn.0040d6a6
test eax, eax
jge 0x409c81
push 9
call fcn.00409b1c
pop ecx
push 1
call fcn.0040a422
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x409c97
push eax
call fcn.00409b1c
pop ecx
mov eax, dword [0x417da0]
mov dword [0x417da4], eax
push eax
push dword [0x417d94]
push dword [0x417d8c]
call fcn.004022f9
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x409cc6
push esi
call fcn.0040a54d
call fcn.0040a56f
jmp 0x409cf8
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00408f1b
ret
Function at 0x40a48c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x417db8], esi
push edi
jne 0x40a4ac
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x417db4], esi
mov byte [0x417db0], al
jne 0x40a512
mov ecx, dword [0x41854c]
test ecx, ecx
je 0x40a4f3
mov eax, dword [0x418548]
sub eax, 4
cmp eax, ecx
jmp 0x40a4ec
mov eax, dword [eax]
test eax, eax
je 0x40a4de
call eax
mov eax, dword [0x418548]
sub eax, 4
cmp eax, dword [0x41854c]
mov dword [0x418548], eax
jae 0x40a4d6
mov eax, 0x417064
mov esi, 0x417068
cmp eax, esi
mov edi, eax
jae 0x40a512
mov eax, dword [edi]
test eax, eax
je 0x40a50b
call eax
add edi, 4
cmp edi, esi
jb 0x40a503
mov eax, 0x41706c
mov esi, 0x417074
cmp eax, esi
mov edi, eax
jae 0x40a531
mov eax, dword [edi]
test eax, eax
je 0x40a52a
call eax
add edi, 4
cmp edi, esi
jb 0x40a522
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40a54b
push dword [ebp + 8]
mov dword [0x417db8], 1
call fcn.0040a3f2
pop ebp
ret