joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x244
mov eax, dword [0x41ada4]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 4], ebx
je 0x40200a
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x41ada4]
cmp dword [esp + 4], ebx
je 0x40200a
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
push 0xff
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x417410
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
pop edi
pop esi
cmp eax, 0xffffffff
pop ebp
je 0x40200a
test byte [esp + 0x108], 0x10
mov al, 1
jne 0x40200c
mov al, bl
pop ebx
add esp, 0x244
ret

Function at 0x406765
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x418000
cmp edx, dword [eax]
je 0x406787
add eax, 8
inc ecx
cmp eax, 0x418090
jl 0x406778
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x418000]
jne 0x4068b5
mov eax, dword [0x41cd78]
cmp eax, 1
je 0x40688f
test eax, eax
jne 0x4067b8
cmp dword [0x4178a4], 1
je 0x40688f
cmp edx, 0xfc
je 0x4068b5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4067ef
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004068c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403d80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406832
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403d80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4146ac
push edi
call fcn.00409550
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004068c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004068d0
lea eax, [ebp - 0xa0]
push 0x41468c
push eax
call fcn.004068d0
push dword [esi + 0x418004]
lea eax, [ebp - 0xa0]
push eax
call fcn.004068d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004094be
add esp, 0x2c
pop edi
jmp 0x4068b5
lea eax, [ebp + 8]
lea esi, [esi + 0x418004]
push 0
push eax
push dword [esi]
call fcn.00403d80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4110f2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x411120
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41113e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00411058
jmp 0x41113e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41113e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00411058
test edi, edi
mov eax, edi
jne 0x411128
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x403ffd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push edi
mov ebx, ecx
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4040b4
push esi
push 1
push edi
call fcn.005efac8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4040b1
push esi
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4040aa
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
push eax
lea eax, [ebp - 4]
push eax
push 0x692b5c
push esi
call ebx
test eax, eax
je 0x4040aa
cmp dword [ebp - 4], 0
je 0x4040aa
push 0x14
call fcn.00430c2b
mov edi, eax
mov dword [ebp - 0x10], edi
pop ecx
test edi, edi
je 0x4040a4
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0x10]
push ecx
mov dword [edi + 8], eax
lea eax, [edi + 0x10]
and dword [eax], 0
push eax
push 0x692b58
push esi
mov dword [edi], vtable.cf::FileVersionInfo.0
mov dword [edi + 4], esi
call ebx
jmp 0x4040a6
xor edi, edi
mov eax, edi
jmp 0x4040b3
push esi
call fcn.005efad3
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4042b4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov ax, word [edi + 8]
mov word [ebp - 0x18], ax
mov ax, word [edi + 0xc]
mov word [ebp - 0x16], ax
call esi
mov word [ebp - 0x14], ax
mov ebx, 0x4e4
mov ax, word [edi + 0xc]
mov word [ebp - 0x12], ax
mov ax, word [edi + 8]
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], bx
call esi
mov word [ebp - 0xa], bx
xor esi, esi
mov word [ebp - 0xc], ax
mov ebx, 0x104
push dword [ebp + 8]
movzx eax, word [ebp + esi*2 - 0x16]
movzx ecx, word [ebp + esi*2 - 0x18]
add esi, 2
push eax
push ecx
push 0x692d68
push ebx
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.00403e80
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
add esp, 0x1c
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x404356
cmp dword [ebp - 4], 0
jne 0x404366
cmp esi, 8
jb 0x404308
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
call fcn.00404417
mov al, 1
jmp 0x40435d
Function at 0x4051a1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40523c
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 8], eax
cmp dword [ebp - 8], ebx
jne 0x40522a
cmp eax, 0x200000
ja 0x40522a
add eax, 2
push eax
call fcn.00499313
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40522a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jne 0x40522a
mov byte [eax + esi], bl
mov eax, dword [ebp - 4]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov esi, ebx
mov eax, dword [ebp + 0x10]
inc ebx
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40523c
push esi
call fcn.0049930e
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40a9d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x40aa5f
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push str.ProgramPath
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x40aa0f
cmp dword [ebp - 8], 2
jne 0x40aa5f
mov ecx, dword [ebp + 0xc]
call fcn.00406271
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.0040682a
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.ProgramPath
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aa55
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
xor esi, esi
shr eax, 1
inc esi
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.00408f1c
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40aa7d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
mov dword [ecx], edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [edx], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40ab09
push esi
push ebx
call fcn.00499313
pop ecx
mov esi, eax
push esi
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40aafd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x692b58
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40aafd
cmp dword [ebp - 8], edi
je 0x40aafd
mov ecx, dword [ebp - 0xc]
inc edi
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test esi, esi
je 0x40ab08
push esi
call fcn.0049930e
pop ecx
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40abe3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x60c66d
call fcn.0060b6e8
sub esp, 0x210
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.00404f47
push eax
mov ecx, esi
call fcn.004065d8
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
call fcn.005e1180
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004060f8
mov ecx, esi
call fcn.0040ab52
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40ad3b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, 0x11c
lea eax, [ebp - 0x11c]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.005e1180
add esp, 0xc
mov dword [ebp - 0x11c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x11c]
push eax
call esi
test eax, eax
jne 0x40ad92
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x114
push eax
call esi
test eax, eax
je 0x40ae42
mov eax, dword [ebp - 0x10c]
sub eax, 1
je 0x40ae2d
sub eax, 1
jne 0x40ae42
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x114]
push 6
pop edx
cmp eax, edx
jne 0x40ade2
cmp ecx, 1
jne 0x40adcf
xor ebx, ebx
cmp byte [ebp - 2], cl
setne bl
add ebx, 8
jmp 0x40ae42
test ecx, ecx
jne 0x40ae15
cmp byte [ebp - 2], 1
push 9
pop ebx
push 7
pop eax
cmove ebx, eax
jmp 0x40ae42
cmp eax, 5
jne 0x40ae07
mov eax, dword [ebp - 0x114]
cmp eax, 2
jne 0x40adf6
push 5
jmp 0x40ae0e
cmp eax, 1
jne 0x40adff
mov ebx, edx
jmp 0x40ae42
test eax, eax
jne 0x40ae42
push 3
jmp 0x40ae0e
cmp eax, 4
ja 0x40ae11
push 4
pop ebx
jmp 0x40ae42
cmp eax, edx
jb 0x40ae42
cmp ecx, 2
jae 0x40ae1e
cmp eax, edx
jbe 0x40ae42
cmp byte [ebp - 2], 1
jne 0x40ae42
call fcn.0040ac67
mov ebx, eax
jmp 0x40ae42
mov eax, dword [ebp - 0x110]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb ebx, ebx
add ebx, 2
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b542
test al, 0x10
jne 0x40b542
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x41298e
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
mov dword [ecx], 0x67452301
push 0x40
lea esi, [ecx + 0x58]
mov dword [ecx + 0x14], eax
push eax
push esi
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
call fcn.005e1180
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x413262
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x58], 0
jne 0x41329a
push 0x98
call fcn.00430c2b
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x41328d
mov ecx, esi
call fcn.0041298e
jmp 0x41328f
xor esi, esi
mov dword [edi + 0x58], esi
test esi, esi
jne 0x41329a
xor eax, eax
jmp 0x4132fd
push 0x694a84
push dword [ebp + 8]
call fcn.005e81ee
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x413296
cmp dword [edi + 0x5c], 0
jne 0x4132d1
push 0xff
call fcn.00499313
pop ecx
mov dword [edi + 0x5c], eax
jmp 0x4132d1
mov ecx, dword [edi + 0x58]
push eax
push dword [edi + 0x5c]
call fcn.004129c6
push esi
push 0xff
push 1
push dword [edi + 0x5c]
call fcn.005ed848
add esp, 0x10
test eax, eax
jne 0x4132c5
push esi
call fcn.005e48cd
pop ecx
mov ecx, dword [edi + 0x58]
lea esi, [edi + 4]
push esi
call fcn.00412a63
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413305
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push esi
push edi
push 0x58
lea eax, [esp + 0xc]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.005e1180
push dword [ebp + 8]
and dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
and dword [esp + 0x28], 0
mov edx, esi
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.0041336e
add esp, 0x10
lea ecx, [esp + 8]
mov edx, edi
call fcn.0041340f
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x414b66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
mov dword [ebp - 4], 4
cmp dword [ecx], esi
je 0x414ba5
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414ba5
cmp dword [ebp - 8], 4
jne 0x414ba5
mov ecx, dword [ebp + 0xc]
inc esi
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x414bae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x414c34
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push str.KAV7NEEDREBOOT
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x414be4
cmp dword [ebp - 8], 2
jne 0x414c34
mov ecx, dword [ebp + 0xc]
call fcn.00406271
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.0040682a
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.KAV7NEEDREBOOT
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414c2a
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
xor esi, esi
shr eax, 1
inc esi
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.00408f1c
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x415a37
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x60cebc
call fcn.0060b6e8
sub esp, 0xc
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x415a75
push dword [ebp + 8]
call fcn.005efad8
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x415a79
mov eax, edi
jmp 0x415a8f
lea esi, [eax + eax]
mov eax, esi
call fcn.0060abc0
mov edx, dword [ebp + 8]
mov ecx, esp
push ecx
push esi
call fcn.00404a71
push eax
lea ecx, [ebp - 0x14]
call fcn.00405d0b
mov esi, dword [ebp - 0x14]
movzx eax, word [esi - 0xc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x415aaf
xor byte [edi + esi], 0x88
inc edi
cmp edi, eax
jl 0x415aa6
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [edi + 4]
call fcn.0041587b
movzx eax, word [ebp - 0x10]
lea ecx, [edi + 4]
push eax
push esi
call fcn.0041587b
lea ecx, [esi - 0x10]
call fcn.00404ea9
lea esp, [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x415be7
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x60cee1
call fcn.0060b6e8
sub esp, 0x90
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x10], edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00406173
mov byte [ebp - 4], 1
lea eax, [ebp - 0x98]
push 0xfde9
push dword [ebp - 0x18]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], eax
call fcn.00408f48
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push dword [ebp - 0x9c]
call fcn.00405d0b
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x9c], eax
je 0x415c70
push dword [ebp - 0x9c]
call fcn.005efad3
pop ecx
mov esi, dword [ebp - 0x14]
movzx eax, word [esi - 0xc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x415c87
xor byte [edi + esi], 0x88
inc edi
cmp edi, eax
jl 0x415c7e
push 2
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 4]
call fcn.0041587b
movzx eax, word [ebp - 0x10]
lea ecx, [ebx + 4]
push eax
push esi
call fcn.0041587b
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x416c62
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x60cfd4
call fcn.0060b6e8
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov edi, ecx
call fcn.00404f47
push eax
lea ecx, [ebp - 0x20]
call fcn.004065d8
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
mov byte [ebp - 4], 1
call fcn.00404f47
push eax
lea ecx, [ebp - 0x1c]
call fcn.004065d8
mov byte [ebp - 4], 2
call fcn.00416bda
test eax, eax
je 0x416d21
lea ecx, [ebp - 0x14]
call fcn.00416c37
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], ebx
je 0x416d24
push str.binTimwp.exe
lea ecx, [ebp - 0x10]
call fcn.004062d3
mov esi, dword [ebp - 0x10]
push ebx
push esi
call fcn.005f1350
pop ecx
pop ecx
test eax, eax
jne 0x416d24
test edi, edi
je 0x416d24
push 1
push ebx
push edi
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg bl
test ebx, ebx
jne 0x416d3f
jmp 0x416d24
mov esi, dword [ebp - 0x10]
push 1
push ebx
push ebx
push dword [ebp - 0x18]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x416ee1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0x104
jb 0x416f02
xor al, al
jmp 0x416f83
push 0x20a
xor ebx, ebx
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.005e1180
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x416f1f
mov esi, dword [esi]
push esi
lea eax, [esp + 0x34]
push 0x105
push eax
call fcn.005f12ec
add esp, 0xc
mov dword [esp + 0x10], ebx
xor eax, eax
lea edi, [esp + 0x14]
push 6
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, 0x414
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x22], ebx
jne 0x416efb
test eax, eax
je 0x416f7e
cmp eax, 2
je 0x416f7e
cmp eax, 0x402
jne 0x416f81
xor ebx, ebx
inc ebx
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret