joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435bbe
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
cmp edi, 0x4e
jne 0x435bdf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp edi, 8
jne 0x435ca2
push ebx
push str.SysMonthCal32
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x435c5c
push 0x20
pop esi
push esi
lea eax, [ebp - 0x2c]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x100e
push edi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x20], 0x1010003
jne 0x435c49
xor eax, eax
inc eax
jmp 0x435c55
cmp dword [ebp - 0x20], 0x2010003
je 0x435c44
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x1c]
jl 0x435c8a
cmp eax, dword [ebp - 0x14]
jg 0x435c8a
cmp eax, dword [ebp - 0x18]
jl 0x435c8a
cmp eax, dword [ebp - 0x10]
jle 0x435c52
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push 8
call fcn.00435912
mov dword [ebp - 4], eax
jmp 0x435c52
mov ecx, dword [ebp + 0xc]
mov eax, 0x101
cmp edi, eax
jne 0x435d13
cmp ecx, 0x2e
je 0x435cb8
cmp ecx, 8
jne 0x435cef
push dword [ebp + 0x10]
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov edi, eax
mov eax, dword [esi + 0x10]
mov dword [eax + 0x594], 2
mov ecx, dword [esi + 0x10]
call fcn.00435777
push ebx
push ebx
push 0x10
mov ecx, esi
call fcn.00408408
mov eax, edi
jmp 0x435c55
cmp ecx, 0x1b
jne 0x435d13
push dword [ebp + 0x10]
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0x594], 3
mov edi, eax
jmp 0x435cdd
push dword [ebp + 0x10]
push ecx
push edi
mov ecx, esi
call fcn.00408420
jmp 0x435c55
Function at 0x401353
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x403000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x4030ce
mov edi, dword [ebp + 0x18]
cmp edi, ebx
je 0x4030ce
mov esi, dword [ebp + 0xc]
push 0x10
mov eax, esi
pop ecx
cdq
idiv ecx
test edx, edx
jne 0x4030ce
cmp dword [ebp + 0x1c], esi
jl 0x4030ce
push 0x80
lea eax, [ebp - 0x214]
push dword [ebp + 0x14]
push eax
call fcn.00401e15
push 0x10
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
push eax
call fcn.00403b30
add esp, 0x18
cmp esi, ebx
jle 0x4030c3
mov eax, dword [ebp + 8]
add esi, 0xf
shr esi, 4
sub eax, edi
mov ebx, esi
mov dword [ebp + 8], eax
shl ebx, 4
jmp 0x40307f
mov eax, dword [ebp + 8]
add eax, edi
push 0x10
push eax
push edi
call fcn.00403b30
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.00402258
add esp, 0x14
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
xor byte [edi + eax], cl
inc eax
cmp eax, 0x10
jl 0x40309c
mov eax, dword [ebp + 8]
push 0x10
add eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403b30
add esp, 0xc
add edi, 0x10
dec esi
jne 0x40307c
mov eax, dword [ebp + 0x18]
and byte [ebx + eax], 0
xor eax, eax
jmp 0x4030d1
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404e0d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x426608
cmp edx, dword [eax]
je 0x404e2f
add eax, 8
inc ecx
cmp eax, 0x426698
jl 0x404e20
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x426608]
jne 0x404f5d
mov eax, dword [0x4460dc]
cmp eax, 1
je 0x404f37
test eax, eax
jne 0x404e60
cmp dword [0x4262bc], 1
je 0x404f37
cmp edx, 0xfc
je 0x404f5d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e97
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403f50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403ed0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404eda
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403ed0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d4b0
push edi
call fcn.00404040
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403f50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403f60
lea eax, [ebp - 0xa0]
push 0x41d490
push eax
call fcn.00403f60
push dword [esi + 0x42660c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403f60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406eb0
add esp, 0x2c
pop edi
jmp 0x404f5d
lea eax, [ebp + 8]
lea esi, [esi + 0x42660c]
push 0
push eax
push dword [esi]
call fcn.00403ed0
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 0x40b4a2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push edi
xor eax, eax
lea edi, [ebp - 7]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
xor ebx, ebx
mov byte [ebp - 8], 0x70
stosd dword es:[edi], eax
mov byte [ebp - 7], 0x72
mov byte [ebp - 6], 0x73
mov byte [ebp - 5], 0x67
mov byte [ebp - 4], 0x72
mov byte [ebp - 3], 0x63
mov byte [ebp - 2], bl
mov byte [ebp - 0x14], 0x67
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0x12], 0x63
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0x10], 0x75
mov byte [ebp - 0xf], 0x74
mov byte [ebp - 0xe], 0x68
mov byte [ebp - 0xd], 0x31
mov byte [ebp - 0xc], bl
mov byte [ebp - 0x20], 0x67
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x63
mov byte [ebp - 0x1d], 0x61
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x68
mov byte [ebp - 0x19], 0x32
mov byte [ebp - 0x18], bl
call fcn.0040d4dd
test eax, eax
je 0x40b536
mov eax, 0x400
jmp 0x40b5a0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040421a
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.0040c4de
lea eax, [ebp - 0x120]
push 1
push eax
call fcn.0040c4de
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040421a
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.0040c4de
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040421a
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.0040c4de
add esp, 0x38
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x40b5a4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 7]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
mov byte [ebp - 0x2c], 0x53
stosb byte es:[edi], al
mov byte [ebp - 0x2b], 0x4f
mov byte [ebp - 0x2a], 0x46
mov byte [ebp - 0x29], 0x54
mov byte [ebp - 0x28], 0x57
mov byte [ebp - 0x27], 0x41
mov byte [ebp - 0x26], 0x52
mov byte [ebp - 0x25], 0x45
mov byte [ebp - 0x24], 0x5c
mov byte [ebp - 0x23], 0x43
mov byte [ebp - 0x22], 0x4c
mov byte [ebp - 0x21], 0x53
mov byte [ebp - 0x20], 0x59
mov byte [ebp - 0x1f], 0x53
mov byte [ebp - 0x1e], 0x54
mov byte [ebp - 0x1d], 0x45
mov byte [ebp - 0x1c], 0x4d
mov byte [ebp - 0x1b], 0x5c
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], 0x73
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x70
mov byte [ebp - 0x15], 0x72
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x10], 0x63
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0xd], 0x75
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xb], 0x68
mov byte [ebp - 0xa], 0x31
mov byte [ebp - 9], bl
mov byte [ebp - 8], 0x63
mov byte [ebp - 7], 0x6c
mov byte [ebp - 6], 0x61
mov byte [ebp - 5], 0x75
mov byte [ebp - 4], 0x74
mov byte [ebp - 3], 0x68
mov byte [ebp - 2], 0x32
mov byte [ebp - 1], bl
call fcn.0040db6e
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040421a
lea eax, [ebp - 0x22c]
push eax
push closesocket
call fcn.0040b3f2
call fcn.0040db6e
call fcn.0040d92e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040d262
add esp, 0x18
cmp eax, ebx
jne 0x40b72c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0040421a
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.0040c4de
lea eax, [ebp - 0x12c]
push 1
push eax
call fcn.0040c4de
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0040421a
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.0040c4de
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0040421a
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.0040c4de
add esp, 0x38
call fcn.0040d92e
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x40bcb8
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x33]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
mov byte [ebp - 0x34], 0x53
push eax
mov byte [ebp - 0x33], 0x4f
mov byte [ebp - 0x32], 0x46
mov byte [ebp - 0x31], 0x54
mov byte [ebp - 0x30], 0x57
mov byte [ebp - 0x2f], 0x41
mov byte [ebp - 0x2e], 0x52
mov byte [ebp - 0x2d], 0x45
mov byte [ebp - 0x2c], 0x5c
mov byte [ebp - 0x2b], 0x4e
mov byte [ebp - 0x2a], 0x74
mov byte [ebp - 0x29], 0x70
mov byte [ebp - 0x28], 0x61
mov byte [ebp - 0x27], 0x64
mov byte [ebp - 0x26], 0x5c
mov byte [ebp - 0x25], 0x48
mov byte [ebp - 0x24], 0x45
mov byte [ebp - 0x23], 0x4c
mov byte [ebp - 0x22], 0x50
mov byte [ebp - 0x21], 0x4d
mov byte [ebp - 0x20], 0x45
mov byte [ebp - 0x1f], 0x4e
mov byte [ebp - 0x1e], 0x55
mov byte [ebp - 0x1d], 0x5c
mov byte [ebp - 0x1c], 0x78
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x72
mov byte [ebp - 0x19], 0x61
mov byte [ebp - 0x18], 0x73
mov byte [ebp - 0x17], bl
call fcn.0040c389
test eax, eax
pop ecx
je 0x40bd57
push 0x10
jmp 0x40bd81
lea eax, [ebp - 8]
mov esi, closesocket
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
je 0x40bd84
push 0x20
pop eax
jmp 0x40bde8
cmp dword [ebp - 8], 1
jne 0x40bddd
push ebx
call fcn.0040413e
push eax
lea eax, [ebp - 0x54]
push 0x427754
push eax
call fcn.0040421a
lea eax, [ebp - 0x54]
push eax
call fcn.00403ed0
add esp, 0x14
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x34]
push 1
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x40bdc8
mov ebx, str._Failed_to_store_the_time_information_in_the_registry_key._n
jmp 0x40bddd
push dword [ebp - 0x10]
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x40bddd
push 0x40
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c4de
Capabilities:
Get common file path
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov dl, byte [0x446484]
push ebx
push esi
push edi
push 0x7c
xor eax, eax
pop ecx
lea edi, [ebp - 0x50b]
mov byte [ebp - 0x50c], dl
push 0x7c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x317]
mov byte [ebp - 0x318], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor ebx, ebx
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 7]
stosd dword es:[edi], eax
lea eax, [ebp - 0x50c]
push 0x100
push eax
mov byte [ebp - 0x10], 0x2e
mov byte [ebp - 0xf], 0x64
mov byte [ebp - 0xe], 0x6c
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x74
mov byte [ebp - 6], 0x67
mov byte [ebp - 5], 0x7a
mov byte [ebp - 4], bl
call esi
cmp dword [ebp + 0xc], 1
lea eax, [ebp - 8]
je 0x40c574
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x50c]
push dword [ebp + 8]
push 0x4278a4
push eax
lea eax, [ebp - 0x318]
push str._s_s_s_s
push eax
call fcn.0040421a
add esp, 0x18
lea eax, [ebp - 0x318]
push ebx
push 0x2000080
push 4
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x40c6a7
mov al, byte [0x446484]
push 0x41
mov byte [ebp - 0x124], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x124]
push 0x105
push eax
call esi
lea eax, [ebp - 0x124]
push str.kernel32.dll
push eax
call fcn.00403f60
pop ecx
lea eax, [ebp - 0x124]
pop ecx
push ebx
push 0x80
push 3
push ebx
push ebx
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c648
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call edi
call fcn.0040c375
cmp eax, 1
jne 0x40c6ae
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x40c674
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40c6a2
push ebx
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
push esi
je 0x40c66c
lea eax, [ebp - 0x318]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], ebx
jne 0x40c6ae
push dword [ebp + 0xc]
call edi
mov eax, 0x400
jmp 0x40c6c1
push dword [ebp + 0xc]
call edi
push 2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c6c6
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
push 8
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 8], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 4]
push 0x41
stosd dword es:[edi], eax
mov al, byte [0x446484]
pop ecx
mov byte [ebp - 0x144], al
xor eax, eax
lea edi, [ebp - 0x143]
push 0x105
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x144]
push str.kernel32.dll
push eax
call fcn.00403f60
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.00418ae2
add esp, 0x10
test eax, eax
jne 0x40c745
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
jmp 0x40c75f
push ebx
call fcn.0040413e
mov esi, 0x15180
push ebx
sub eax, esi
mov dword [ebp - 8], eax
call fcn.0040413e
pop ecx
sub eax, esi
pop ecx
push 0x80
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4278ac
push dword [ebp + 0xc]
call fcn.00418354
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x40c78f
mov eax, 0x800
jmp 0x40c870
push edi
call fcn.00406445
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00403e70
lea eax, [ebp - 0x14]
mov esi, 0x3b9aca00
push eax
push 0x4278a8
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
call fcn.00418696
push ebx
push ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.00418971
push edi
push 4
lea eax, [ebp - 0x18]
push 4
push eax
call fcn.00418838
add esp, 0x38
cmp eax, 4
push edi
je 0x40c7ef
call fcn.004076c8
pop ecx
mov eax, 0x1000
jmp 0x40c870
call fcn.004076c8
pop ecx
call fcn.0040c375
cmp eax, 1
jne 0x40c854
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x40c84d
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x40c825
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40c84d
push ebx
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
push esi
je 0x40c81d
push 4
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, ebx
jne 0x40c854
mov eax, 0x2000
jmp 0x40c870
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.004186ca
pop ecx
pop ecx
push 2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c875
Capabilities:
Get common file path
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x548
mov dl, byte [0x446484]
push ebx
push esi
push edi
push 0x7c
xor eax, eax
pop ecx
lea edi, [ebp - 0x547]
mov byte [ebp - 0x548], dl
push 0x7c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x353]
mov byte [ebp - 0x354], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x57]
mov byte [ebp - 0x58], dl
push 0x41
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 7]
stosd dword es:[edi], eax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x15f]
mov byte [ebp - 0x160], dl
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor ebx, ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x548]
push 0x100
push eax
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], bl
mov byte [ebp - 3], bl
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x548]
push dword [ebp + 8]
push 0x4278a4
push eax
lea eax, [ebp - 0x354]
push str._s_s_s_s
push eax
call fcn.0040421a
add esp, 0x18
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [ebp - 0x354]
push ebx
push 0x2000080
push 4
push ebx
push ebx
push 0xc0000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x40c967
mov eax, 0x400
jmp 0x40ca29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 0x18], eax
jne 0x40c98a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8000
jmp 0x40ca29
lea eax, [ebp - 0x160]
push 0x105
push eax
call esi
lea eax, [ebp - 0x160]
push str.kernel32.dll
push eax
call fcn.00403f60
pop ecx
lea eax, [ebp - 0x160]
pop ecx
push ebx
push 0x80
push 3
push ebx
push ebx
push closesocket
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c9ef
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call esi
push dword [ebp - 0xc]
call esi
push dword [0x44cc70]
lea eax, [ebp - 0x58]
push 0x4278a8
push eax
call fcn.0040421a
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040c6c6
add esp, 0x14
push 2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ca2e
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f0
mov dl, byte [0x446484]
push ebx
push edi
push 0x7c
pop ecx
xor eax, eax
lea edi, [ebp - 0x1fb]
mov byte [ebp - 0x1fc], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7c
xor eax, eax
pop ecx
lea edi, [ebp - 0x3ef]
mov byte [ebp - 0x3f0], dl
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 7]
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x1fc]
push 0x100
push eax
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], bl
mov byte [ebp - 3], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1fc]
push dword [ebp + 8]
push 0x4278a4
push eax
lea eax, [ebp - 0x3f0]
push str._s_s_s_s
push eax
call fcn.0040421a
add esp, 0x18
lea eax, [ebp - 0x3f0]
push ebx
push 0x2000080
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40caee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40cb00
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x40cb06
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 7]
xor ebx, ebx
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1f4
lea eax, [ebp - 0x204]
push ebx
push eax
mov byte [ebp - 8], 0x56
mov byte [ebp - 7], 0x61
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x75
mov byte [ebp - 4], 0x65
mov byte [ebp - 3], bl
mov byte [ebp - 2], bl
call fcn.00403e70
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push ebx
push dword [ebp + 8]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40cb71
mov eax, 0x80
jmp 0x40cc1b
lea eax, [ebp - 0x10]
push eax
call fcn.0040413e
push dword [ebp - 0x10]
call fcn.0040faf8
mov dword [0x44cc70], eax
mov eax, dword [ebp + 0x10]
pop ecx
cmp dword [eax], 2
pop ecx
push dword [ebp + 0xc]
je 0x40cbd4
call fcn.0040ca2e
cmp eax, ebx
pop ecx
je 0x40cbde
cmp eax, 2
jne 0x40cc19
push 4
push 0x44cc70
push 4
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40cbc5
mov esi, 0x100
jmp 0x40cbc7
xor esi, esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40cc1b
call fcn.0040ca2e
cmp eax, ebx
pop ecx
jne 0x40cbe5
mov eax, 0x8000
jmp 0x40cc1b
cmp eax, 2
jne 0x40cc19
push 4
push 0x44cc70
push 4
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x100
jmp 0x40cc1b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret