joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ea00
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp + 4], 0x91
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ea3d
push 0
push 0
push str.USBGuard_failed_in_accessing_the_registry._r_nPlease_check_if_the_current_user_has_right_to_access_the_registry.
call sub.MFC42.DLL_AfxMessageBox
add esp, 8
ret
mov edx, dword [esp]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push 0
push str.NoDriveTypeAutoRun
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x40f590
Capabilities:
Get file version info

Disassembly:
sub esp, 0x600
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0x610]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Unknown
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Unknown
push edx
call fcn.0040ea70
add esp, 0xc
test al, al
pop edi
pop esi
pop ebx
je 0x40f609
mov eax, 1
add esp, 0x600
ret
lea ecx, [esp + 0x400]
lea edx, [esp]
push ecx
push 0x200
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
neg eax
sbb eax, eax
neg eax
add esp, 0x600
ret

Function at 0x40f870
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x234]
push edi
xor ebp, ebp
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebp
push esi
push 8
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
jne 0x40f8b6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret
cmp esi, ebp
jne 0x40f8c7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x224
push eax
push ebx
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x40f929
lea ecx, [esp + 0x130]
push ecx
call fcn.0040eae0
add esp, 4
cmp eax, 1
je 0x40f904
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x40f929
jmp 0x40f8de
mov ecx, dword [esp + 0x240]
mov edi, dword [esp + 0x23c]
mov eax, ecx
lea esi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov ebp, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
Function at 0x40fbd0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x34
push esi
mov esi, dword [esp + 0x3c]
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40fc17
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi - 1]
test eax, eax
jle 0x40fc17
cmp byte [eax + esi], 0x2e
je 0x40fc1f
dec eax
test eax, eax
jg 0x40fc0c
pop edi
xor eax, eax
pop esi
add esp, 0x34
ret
test eax, eax
jle 0x40fc17
xor edx, edx
cmp eax, edi
jge 0x40fc37
mov cl, byte [eax + esi]
mov byte [esp + edx + 8], cl
inc edx
inc eax
cmp edx, 9
jl 0x40fc25
push 4
lea edx, [esp + 0xc]
push str..tmp
push edx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40fc5a
pop edi
mov eax, 2
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str.._mp
push eax
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40fc7d
pop edi
mov eax, 3
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..log
push ecx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40fca0
pop edi
mov eax, 4
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..gid
push edx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40fcc3
pop edi
mov eax, 5
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..chk
push eax
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40fce6
pop edi
mov eax, 6
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..old
push ecx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40fd09
pop edi
mov eax, 7
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..bak
push edx
call fcn.0040ea70
add esp, 0xc
test al, al
je 0x40fc17
pop edi
mov eax, 8
pop esi
add esp, 0x34
ret

Function at 0x40feb0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
mov eax, dword [str._c:_]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
movsx esi, byte [esp + 0x20]
push esi
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 2
je 0x40ff09
dec eax
je 0x40ff09
sub eax, 2
je 0x40ff02
push str.Cannot_eject.__Drive_type_is_incorrect._n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov edi, 0x80000000
jmp 0x40ff0e
mov edi, 0xc0000000
mov eax, dword [str.._c:]
push esi
lea ecx, [esp + 0x18]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x14]
push 0
push 0
push 3
push 0
push 3
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ff49
push str.CreateFile
call fcn.0040fe90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x410710
Capabilities:
Create directory

Disassembly:
sub esp, 0x200
push ebp
mov ebp, dword [esp + 0x208]
push esi
push edi
test ebp, ebp
jne 0x410730
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x200
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
call fcn.00410510
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x10c], al
mov edx, ecx
mov esi, edi
mov edi, ebp
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.quarantine
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x3f
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
lea ecx, [esp + 0x10]
push eax
push 0x100
push 0
push str.quarantine
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x4107f0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4107f0
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x200
ret
mov edi, 0x422884
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
add esp, 0x200
ret
Function at 0x410830
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x500
push ebx
xor ebx, ebx
push esi
cmp edx, ebx
push edi
jne 0x41084f
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x500
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, ebp
mov byte [esp + 0x410], bl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x3f
lea edi, [esp + 0x415]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x414]
lea edx, [esp + 0x14]
push ecx
push 0x100
stosw word es:[edi], ax
push ebx
push edx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
pop ebp
jne 0x4108cd
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x500
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x30d]
mov byte [esp + 0x30c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30c]
push eax
call fcn.00410710
add esp, 4
test al, al
jne 0x410905
pop edi
pop esi
pop ebx
add esp, 0x500
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x20d]
mov byte [esp + 0x20c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20c]
lea edx, [esp + 0xc]
push ecx
push edx
stosb byte es:[edi], al
call fcn.00410640
or ecx, 0xffffffff
mov edi, 0x422910
xor eax, eax
lea edx, [esp + 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x118]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x318]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x218]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.004100a0
add esp, 0x14
lea edx, [esp + 0xc]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
pop edi
pop esi
setne al
pop ebx
add esp, 0x500
ret
Function at 0x410a20
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x54
test eax, eax
push ebp
push esi
push edi
je 0x410b7a
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x410b7a
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x410a6b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x54
ret
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x4228fc]
mov edx, dword [0x422900]
stosb byte es:[edi], al
mov eax, dword [str.zbshareware]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x64]
push eax
push ecx
lea edi, [esp + 0x20]
or ecx, 0xffffffff
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x34]
not ecx
dec ecx
mov dword [esp + 0x6c], 1
push ecx
push edx
push ebp
call edi
test eax, eax
je 0x410b73
lea esi, [esp + 0x18]
lea eax, [esp + 0x2c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x410b02
test cl, cl
je 0x410afe
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x410b02
add eax, 2
add esi, 2
test cl, cl
jne 0x410ade
xor eax, eax
jmp 0x410b07
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x410b73
xor ecx, ecx
xor al, al
mov dword [esp + 0xd], ecx
mov dword [esp + 0x64], 1
mov dword [esp + 0x11], ecx
mov byte [esp + 0xc], al
mov byte [esp + 0x15], cl
xor esi, esi
cmp al, 0xd
je 0x410b5b
lea edx, [esp + 0x64]
push 0
push edx
lea eax, [esp + 0x14]
push 1
push eax
push ebp
call edi
mov al, byte [esp + 0xc]
mov ecx, dword [esp + 0x64]
cmp al, 0xd
je 0x410b57
test ecx, ecx
jbe 0x410b5b
mov edx, dword [esp + 0x68]
inc esi
mov byte [esi + edx - 1], al
test ecx, ecx
ja 0x410b29
mov eax, dword [esp + 0x68]
push ebp
mov byte [esi + eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x54
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x54
ret
Function at 0x410b90
Capabilities:
Get common file path

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x404
push ebx
xor ebx, ebx
push ebp
push esi
cmp edx, ebx
push edi
jne 0x410bb1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x214]
push ecx
push edx
call fcn.00410a20
add esp, 8
test al, al
jne 0x410c34
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
lea eax, [esp + 0x114]
push ebx
lea ecx, [esp + 0x218]
push eax
push ecx
call fcn.004100a0
add esp, 0xc
cmp eax, 1
jne 0x410c5d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x315]
mov byte [esp + 0x314], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x314]
lea eax, [esp + 0x214]
push edx
push eax
call fcn.00410640
add esp, 8
test al, al
jne 0x410ca0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea ecx, [esp + 0x14]
push 0x10
push ecx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x422884
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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 edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x318]
or ecx, 0xffffffff
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 + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call fcn.004100a0
add esp, 0xc
dec eax
neg eax
sbb eax, eax
pop edi
and al, 0xfe
pop esi
pop ebp
add eax, 2
pop ebx
add esp, 0x404
ret
Function at 0x4110b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x4230fc]
sub esp, 0xe4
push ebx
xor ebx, ebx
cmp al, bl
jne 0x41121e
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREzbshareware
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41121e
push esi
push edi
mov ecx, 0x18
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push str.Name
push edx
mov dword [esp + 0x2c], 0x64
call esi
test eax, eax
jne 0x411144
lea eax, [esp + 0x28]
push eax
call fcn.00410e00
add esp, 4
test al, al
jne 0x4111b5
mov byte [0x423220], bl
mov dword [esp + 0x10], 0x607
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x18]
lea eax, [esp + 0x8c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push ebx
push str.Code
push edx
mov dword [esp + 0x30], 0x64
call esi
pop edi
pop esi
test eax, eax
jne 0x4111ad
lea eax, [esp + 0x84]
push eax
call fcn.00410e90
add esp, 4
test al, al
jne 0x4111d0
mov byte [0x423220], bl
jmp 0x4111ea
cmp byte [0x423220], bl
je 0x41114a
lea ecx, [esp + 0x28]
push ecx
call fcn.00410fd0
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x411152
cmp byte [0x423220], bl
je 0x4111ea
lea ecx, [esp + 0x84]
push ecx
call fcn.00411030
add esp, 4
jmp 0x4111ef
mov eax, 0xd4
cmp dword [esp + 8], eax
je 0x4111fd
mov byte [0x423220], bl
jmp 0x41120c
mov al, byte [0x423220]
mov byte [0x4230fc], bl
cmp al, bl
jne 0x411213
mov byte [0x4230fc], 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
add esp, 0xe4
ret
Function at 0x415320
Capabilities:
Access peb ldr_data
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x41a7c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov bl, 0x41
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
mov dword [esp + 0xc], eax
je 0x40f6ee
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
test al, 1
je 0x40f6de
movsx eax, bl
push eax
lea ecx, [esp + 0x1c]
push 0x4226c8
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x40f6a3
cmp eax, 3
jne 0x40f6de
mov edi, 0x422884
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040ef00
add esp, 4
mov eax, dword [esp + 0x14]
inc bl
shr eax, 1
mov dword [esp + 0x14], eax
jne 0x40f677
pop esi
pop ebp
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
push 0x9c
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CString::LoadStringA
call fcn.0040e990
mov ecx, dword [esp + 8]
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
jmp 0x40f630
Function at 0x415330
Capabilities:
Access peb ldr_data
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x41a7e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov bl, 0x41
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
mov dword [esp + 0xc], eax
je 0x40f80e
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
test al, 1
je 0x40f7fe
movsx eax, bl
push eax
lea ecx, [esp + 0x1c]
push 0x4226c8
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x40f7c3
cmp eax, 3
jne 0x40f7fe
mov edi, 0x422884
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040f2c0
add esp, 4
mov eax, dword [esp + 0x14]
inc bl
shr eax, 1
mov dword [esp + 0x14], eax
jne 0x40f797
pop esi
pop ebp
call fcn.0040ea00
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
push 0x9d
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 8]
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
jmp 0x40f750
Function at 0x416d70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xe8
push esi
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
mov dword [esp + 0xc], 0x64
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x1e]
lea ecx, [esp + 0x28]
and eax, 0xffff
push eax
push 0x423104
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [esp + 0x100]
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x8c]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.lastcheck
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x8c]
mov edi, eax
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x10], eax
test edi, edi
jne 0x416e5b
test eax, eax
je 0x416e5b
fild dword [esp + 8]
fisub dword [esp + 0x10]
fabs
fcomp qword [0x41df60]
fnstsw ax
test ah, 0x41
jne 0x416e4e
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x28]
push ecx
push eax
jmp 0x416e6e
pop edi
xor al, al
pop esi
add esp, 0xe8
ret 4
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 1
push 0
push str.lastcheck
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
mov al, 1
pop esi
add esp, 0xe8
ret 4

Function at 0x416e90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41b6e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0x64
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_3
push 0xdf
lea ecx, [esp + 0xc]
mov dword [esp + 0x84], 0
call sub.MFC42.DLL_CString::LoadStringA
mov esi, dword [esp + 0x88]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push str.autorun
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x416f4c
mov eax, dword [esp + 8]
push 0
push 1
push eax
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 1
jne 0x416f29
call fcn.0040e990
mov edi, 0x423164
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x423164
push 1
push eax
push str.autorun
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 8]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x7c
ret 4